diff options
author | Sergey Kosukhin <skosukhin@gmail.com> | 2017-05-01 04:08:49 +0200 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-04-30 19:08:49 -0700 |
commit | 4421013290d0d888b328d9ccc365b15b07a815ec (patch) | |
tree | 9cf3e7180c904e22f0891eab21f0094bab0f036b | |
parent | 1f303c9ac89b3eee34ac8c07878f8ba1d00fac62 (diff) | |
download | spack-4421013290d0d888b328d9ccc365b15b07a815ec.tar.gz spack-4421013290d0d888b328d9ccc365b15b07a815ec.tar.bz2 spack-4421013290d0d888b328d9ccc365b15b07a815ec.tar.xz spack-4421013290d0d888b328d9ccc365b15b07a815ec.zip |
Updated cc wrapper: switch from ld to vcheck if version is requested. (#2501)
-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 |