From 9588833f11d075f060b778a5e629d7210e51a59b Mon Sep 17 00:00:00 2001 From: David Date: Tue, 7 Jun 2016 20:30:54 +1200 Subject: Add check for clang in path before setting CXX and CC --- bash_profile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bash_profile b/bash_profile index 6ccbe3a..61efd63 100644 --- a/bash_profile +++ b/bash_profile @@ -28,8 +28,10 @@ PS1="${BYellow}\ export GPG_TTY=$(tty) export EDITOR=/usr/bin/vim -export CC=clang -export CXX=clang +if [ $(which clang 2>/dev/null) ]; then + export CC=clang + export CXX=clang +fi alias sudo="sudo " alias monut=mount -- cgit v1.1