Skip to content

Commit

Permalink
[New] Use Clang as C/C++ compiler if we detected it, close nvm-sh#902
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello committed Nov 16, 2016
1 parent 0360829 commit a648ecd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nvm.sh
Original file line number Diff line number Diff line change
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 a648ecd

Please sign in to comment.