[New] nvm install -s: Use clang as C/C++ compiler if detected.

Fixes #902.
This commit is contained in:
Peter Dave Hello
2016-11-14 05:39:34 +08:00
committed by Jordan Harband
parent 61ae478c38
commit 38934bf16c

4
nvm.sh
View File

@@ -1854,6 +1854,10 @@ nvm_install_source() {
elif [ "${NVM_OS}" = 'aix' ]; then
make='gmake'
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
tar_compression_flag='z'