[New] `nvm install -s`: Use clang as C/C++ compiler if detected.
Fixes #902.
parent
61ae478c38
commit
38934bf16c
4
nvm.sh
4
nvm.sh
|
@ -1854,6 +1854,10 @@ nvm_install_source() {
|
||||||
elif [ "${NVM_OS}" = 'aix' ]; then
|
elif [ "${NVM_OS}" = 'aix' ]; then
|
||||||
make='gmake'
|
make='gmake'
|
||||||
fi
|
fi
|
||||||
|
if nvm_has "clang++" && nvm_has "clang" ; then
|
||||||
|
nvm_echo "Clang detected! Use Clang as c/c++ compiler!"
|
||||||
|
MAKE_CXX='CC=clang CXX=clang++'
|
||||||
|
fi
|
||||||
|
|
||||||
local tar_compression_flag
|
local tar_compression_flag
|
||||||
tar_compression_flag='z'
|
tar_compression_flag='z'
|
||||||
|
|
Loading…
Reference in New Issue