From c6202810071c2f38b9fb78bf899416810454cf15 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Mon, 17 Nov 2014 12:32:30 +0100 Subject: bash: let's use clang/clang++ as the default compiler. But since some projects such as HHVM, do not compile under clang, we have to use gcc there. Since it's no fun to keep on writing "CC=..." and all that, I've created the `GCC` shortuct. --- bashrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bashrc b/bashrc index d70d547..5f7ad02 100644 --- a/bashrc +++ b/bashrc @@ -65,6 +65,12 @@ alias frameworks='source $KF5_SRC/kf5.sh' # Alias bundle exec alias be='bundle exec' +# Set the CC and CXX variables to clang, but allow a fallback shortcut, since +# some projects do not support clang yet (e.g. HHVM). +alias GCC='CC=/usr/bin/gcc CXX=/usr/bin/g++' +export CC=/usr/bin/clang +export CXX=/usr/bin/clang++ + # Go things export GOROOT=$HOME/Projects/go export GOPATH=$HOME/Projects/golang -- cgit v1.2.3