Skip to content

Commit

Permalink
Fix cc wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA authored Jun 14, 2024
1 parent 25069b0 commit c812133
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions lib/spack/env/cc
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,11 @@ case "$command" in
# Edge case for Intel's oneAPI compilers when using the legacy classic compilers:
# Pass flags to disable deprecation warnings to vcheck mode, since the warnings
# to stderr confuse tools that parse the output of compiler version checks.
if [[ ${SPACK_CFLAGS} == *"-diag-disable=10441"* ]]; then
vcheck_flags="-diag-disable=10441"
fi
case ${SPACK_CXXFLAGS} in
*"-diag-disable=10441"* )
vcheck_flags="-diag-disable=10441"
;;
esac
command="$SPACK_CC"
language="C"
comp="CC"
Expand All @@ -256,9 +258,11 @@ case "$command" in
# Edge case for Intel's oneAPI compilers when using the legacy classic compilers:
# Pass flags to disable deprecation warnings to vcheck mode, since the warnings
# to stderr confuse tools that parse the output of compiler version checks.
if [[ ${SPACK_CXXFLAGS} == *"-diag-disable=10441"* ]]; then
vcheck_flags="-diag-disable=10441"
fi
case ${SPACK_CXXFLAGS} in
*"-diag-disable=10441"* )
vcheck_flags="-diag-disable=10441"
;;
esac
command="$SPACK_CXX"
language="C++"
comp="CXX"
Expand All @@ -269,9 +273,11 @@ case "$command" in
# Edge case for Intel's oneAPI compilers when using the legacy classic compilers:
# Pass flags to disable deprecation warnings to vcheck mode, since the warnings
# to stderr confuse tools that parse the output of compiler version checks.
if [[ ${SPACK_FFLAGS} == *"-diag-disable=10448"* ]]; then
vcheck_flags="-diag-disable=10448"
fi
case ${SPACK_CXXFLAGS} in
*"-diag-disable=10441"* )
vcheck_flags="-diag-disable=10441"
;;
esac
command="$SPACK_FC"
language="Fortran 90"
comp="FC"
Expand Down

0 comments on commit c812133

Please sign in to comment.