Skip to content

Commit

Permalink
[New] nvm install -s: Use clang as C/C++ compiler if detected.
Browse files Browse the repository at this point in the history
Fixes nvm-sh#902.
  • Loading branch information
PeterDaveHello authored and ljharb committed Nov 13, 2016
1 parent 61ae478 commit 38934bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nvm.sh
Expand Up @@ -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'
Expand Down

0 comments on commit 38934bf

Please sign in to comment.