Skip to content

CLI CPPPATH/LIBPATH/LINKFLAGS to scons env#324

Open
dorogyn22 wants to merge 1 commit intoahay:masterfrom
dorogyn22:fix/sconstruct-cpppath-libpath
Open

CLI CPPPATH/LIBPATH/LINKFLAGS to scons env#324
dorogyn22 wants to merge 1 commit intoahay:masterfrom
dorogyn22:fix/sconstruct-cpppath-libpath

Conversation

@dorogyn22
Copy link
Contributor

Variables like CPPPATH or LIBPATH passed on the configure command (./configure) prior to scons install are accepted without error but never applied to the build bc they are not registered with opts.Add().

path_get() in configure.py already supports comma-separated strings but never receives them.

Read these variables from ARGUMENTS and apply them to env directly. Also forward OMPI_CC/OMPI_CXX to child processes so Open MPI compiler wrappers use the correct compiler (e.g. LLVM clang with OpenMP support instead of Apple system clang).

Variables like CPPPATH or LIBPATH passed on the configure command (./configure) prior to scons install are accepted without error but never applied to the build bc they are not registered with opts.Add().

path_get() in configure.py already supports comma-separated strings but never receives them.

Read these variables from ARGUMENTS and apply them to env directly. Also forward OMPI_CC/OMPI_CXX to child processes so Open MPI compiler wrappers use the correct compiler (e.g. LLVM clang with
OpenMP support instead of Apple system clang).
@sfomel
Copy link
Contributor

sfomel commented Feb 24, 2026

This might be better handled in https://github.com/ahay/src/blob/master/framework/configure.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants