diff options
-rwxr-xr-x | lib/spack/env/cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc index d7212bf89c..e6cca1c51f 100755 --- a/lib/spack/env/cc +++ b/lib/spack/env/cc @@ -133,7 +133,7 @@ esac # 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 ]]; then +if [[ -z $mode ]] || [[ $mode == ld ]]; then for arg in "$@"; do if [[ $arg == -v || $arg == -V || $arg == --version || $arg == -dumpversion ]]; then mode=vcheck |