-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
For integration in packaging systems like conda-build or spack or to seamlessly work with environment modules fpm could allow an option to use non-prefixed environment variables.
--compiler,FPM_FC,FCto set Fortran compiler--c-compiler,FPM_CC,CCto set C compiler--archiver,FPM_AR,ARto set archiver--flag,FPM_FFLAGS,FFLAGSto set Fortran compiler flags--c-flag,FPM_CFLAGS,CFLAGSto set C compiler flags--link-flag,FPM_LDFLAGS,LDFLAGSto set linker flags
The non-prefixed environment variables will not be used by default to avoid picking up environment variables by accident, i.e. using the non-prefixed variables is always opt-in.
Possible Solution
Use command line flag --env or similar to activate usage of compiler variables. Always provide an option to show to show where a particular default originated from.
Additional Information
Follow-up from #549
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request