spack/lib/spack/env
Dom Heinzeller 0902910784
Compiler wrapper: add env var to pass vcheck flags (#44588)
Fixes #43494

Add a set of environment variables SPACK_ALWAYS_CFLAGS (etc.) that
are always applied by the compiler wrapper.

Unlike SPACK_CFLAGS, for example, these will also be applied to
version checks (both SPACK_CFLAGS and SPACK_ALWAYS_CFLAGS will be
applied to the other invocation modes like ccld etc.).

Using this new functionality, the classic Intel and oneAPI compilers
are updated to pass compiler flags that disable warning messages
when newer versions are invoked via their older binary names
(these warnings were also generated for version checks, hence the
need for a new wrapper variable).

---------

Co-authored-by: Peter Josef Scheibel <scheibel1@llnl.gov>
2024-08-08 06:40:36 +00:00
..
aocc
arm
case-insensitive
cce
clang
fj
gcc
intel
nag
nvhpc
oneapi
pgi
rocmcc
xl
xl_r
c89
c99
c++
cc Compiler wrapper: add env var to pass vcheck flags (#44588) 2024-08-08 06:40:36 +00:00
cpp
f77
f90
f95
fc
ftn
ld
ld.gold
ld.lld