summaryrefslogtreecommitdiff
path: root/lib/spack/env/cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/env/cc')
-rwxr-xr-xlib/spack/env/cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc
index ffd1df8c7a..f72a6663a3 100755
--- a/lib/spack/env/cc
+++ b/lib/spack/env/cc
@@ -283,19 +283,10 @@ esac
if [ -z "$mode" ] || [ "$mode" = ld ]; then
for arg in "$@"; do
case $arg in
- -V|--version|-dumpversion)
+ -v|-V|--version|-dumpversion)
mode=vcheck
break
;;
- -v)
- # NOTE(trws): -v is verbose on gcc, not version, this is an ld-mode flag only
- # -V is invalid on gcc but may be valid on some other compiler so leaving that in
- case "$mode" in
- ld)
- mode=vcheck
- break
- ;;
- esac
esac
done
fi