Browse Source

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

Fixes #902.
Peter Dave Hello 9 years ago committed by Jordan Harband
parent
commit
38934bf16c
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
  1. 4
      nvm.sh

4
nvm.sh

@ -1854,6 +1854,10 @@ nvm_install_source() { @@ -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'

Loading…
Cancel
Save