clang only if we have clang

This commit is contained in:
Thomas FORGIONE 2016-12-03 10:48:49 +01:00
parent b347504d13
commit fbd4ae2399
No known key found for this signature in database
GPG Key ID: 2B5C8A9986271A42
1 changed files with 12 additions and 3 deletions

View File

@ -21,7 +21,16 @@ export CLASSPATH="$CLASSPATH:$HOME/.java/packages/*:$HOME/.java/packages/lib/*:/
export MATLABPATH=$HOME/.matlab2
export GOPATH="$HOME/.config/go"
# I want clang as default compiler
export CC="clang"
export CXX="clang++"
# I want clang as default compiler if it exists
command -v clang > /dev/null 2>&1
if [ $? -eq 0 ]; then
export CC="clang"
fi
command -v clang++ > /dev/null 2>&1
if [ $? -eq 0 ]; then
export CXX="clang++"
fi
# Wine Debug
export WINEDEBUG=-all