Skip to content

Commit

Permalink
Merge pull request #443 from JCSDA/AlexanderRichert-NOAA-patch-1
Browse files Browse the repository at this point in the history
Fix cc wrapper
  • Loading branch information
climbfuji authored Jun 14, 2024
2 parents 25069b0 + c812133 commit 3157121
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 3157121

Please sign in to comment.