Updated cc wrapper: switch from ld to vcheck if version is requested. (#2501)
This commit is contained in:
parent
1f303c9ac8
commit
4421013290
2
lib/spack/env/cc
vendored
2
lib/spack/env/cc
vendored
@ -133,7 +133,7 @@ esac
|
|||||||
# If any of the arguments below are present, then the mode is vcheck.
|
# 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
|
# In vcheck mode, nothing is added in terms of extra search paths or
|
||||||
# libraries.
|
# libraries.
|
||||||
if [[ -z $mode ]]; then
|
if [[ -z $mode ]] || [[ $mode == ld ]]; then
|
||||||
for arg in "$@"; do
|
for arg in "$@"; do
|
||||||
if [[ $arg == -v || $arg == -V || $arg == --version || $arg == -dumpversion ]]; then
|
if [[ $arg == -v || $arg == -V || $arg == --version || $arg == -dumpversion ]]; then
|
||||||
mode=vcheck
|
mode=vcheck
|
||||||
|
Loading…
Reference in New Issue
Block a user