summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergey Kosukhin <skosukhin@gmail.com>2017-05-01 04:08:49 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2017-04-30 19:08:49 -0700
commit4421013290d0d888b328d9ccc365b15b07a815ec (patch)
tree9cf3e7180c904e22f0891eab21f0094bab0f036b /lib
parent1f303c9ac89b3eee34ac8c07878f8ba1d00fac62 (diff)
downloadspack-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)
Diffstat (limited to 'lib')
-rwxr-xr-xlib/spack/env/cc2
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