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
Fix: Pass compiler flags as environment variables, not scons args
The error was: "ERROR: Encountered unexpected command line option: 'CFLAGS'"
Cantera's scons doesn't accept CFLAGS/CXXFLAGS as command-line arguments.
Instead, they must be passed as environment variables.
Changed from:
system venv/"bin/python", "-m", "SCons", "build", "CFLAGS=...", ...
To:
cantera_env = { "CC" => ENV.cc, "CXX" => ENV.cxx, "CFLAGS" => "...", ... }
system cantera_env, venv/"bin/python", "-m", "SCons", "build", ...
This passes the compiler settings as environment variables which scons
can properly detect and use.
0 commit comments