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 Cantera build: Set ENV vars and explicit compilers for scons
Previous approach of passing cc_flags/cxx_flags didn't work because:
1. Homebrew clears CFLAGS/CXXFLAGS from ENV during builds
2. Cantera's scons needs environment variables set for compiler checks
3. scons also needs explicit CC/CXX compiler selection
Solution:
- Set ENV["CC"], ENV["CXX"], ENV["CFLAGS"], ENV["CXXFLAGS"], ENV["SDKROOT"]
- Pass CC=<compiler> and CXX=<compiler> as scons arguments
- Pass SDKROOT as environment variable to system() call
This ensures scons can find standard C++ headers like <cmath> during
its configuration checks.
0 commit comments