-
Notifications
You must be signed in to change notification settings - Fork 387
Open
Description
My colleague, @penguian , found that the Spack compiler wrapper assumes that -V
will not appear as a compiler flag when compiling source:
spack-packages/repos/spack_repo/builtin/packages/compiler_wrapper/cc.sh
Lines 350 to 362 in 79c577f
# If any of the arguments below are present, then the mode is vcheck. | |
# In vcheck mode, nothing is added in terms of extra search paths or | |
# libraries. | |
if [ -z "$mode" ] || [ "$mode" = ld ]; then | |
for arg in "$@"; do | |
case $arg in | |
-v|-V|--version|-dumpversion) | |
mode=vcheck | |
break | |
;; | |
esac | |
done | |
fi |
spack-packages/repos/spack_repo/builtin/packages/compiler_wrapper/cc.sh
Lines 434 to 440 in 79c577f
if [ "$mode" = vcheck ]; then | |
full_command_list="$command" | |
args="$@" | |
extend full_command_list vcheck_flags | |
extend full_command_list args | |
execute | |
fi |
For more details, please refer to: ACCESS-NRI/spack-packages#315
Metadata
Metadata
Assignees
Labels
No labels