You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make get_cmdstan_flags() robust to noisy make output
Fixes#1162
Parse `make print-<FLAG>` output line-by-line so cmdstanr ignores unrelated `make` chatter such as directory-entering messages triggered by `MAKEFLAGS=-w`.
This fixes a failure where `get_cmdstan_flags("STANCFLAGS")` could return junk tokens, which then caused `cmdstan_model()` to error when checking local stanc flags.
Also:
- return `character(0)` for empty `STANCFLAGS`
- use a length-safe check when combining local stanc flags
- add regression tests for noisy make output, realistic continued `STANCFLAGS`, and the reported `MAKEFLAGS="-w -j 4"` case
0 commit comments