Updated cc wrapper: switch from ld to vcheck if version is requested. (#2501)

This commit is contained in:
Sergey Kosukhin 2017-05-01 04:08:49 +02:00 committed by Todd Gamblin
parent 1f303c9ac8
commit 4421013290

2
lib/spack/env/cc vendored
View File

@ -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