diff options
author | David <dbphillipsnz@gmail.com> | 2016-09-02 20:15:11 +1200 |
---|---|---|
committer | David <dbphillipsnz@gmail.com> | 2016-09-02 20:15:11 +1200 |
commit | 26f6f50589a86680ae73f2c6116f25b4fb7314f8 (patch) | |
tree | b45ae2efc38df67aea1eb328cb3398ef865cb5b5 | |
parent | ace3d98c85955ac1364de8a7edba864d1e096015 (diff) | |
download | dotfiles-26f6f50589a86680ae73f2c6116f25b4fb7314f8.tar.xz |
Prefer clang over gcc, fall back on tcc if no gcc
-rw-r--r-- | bashrc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -28,9 +28,12 @@ PS1="${BYellow}\ ############### export GPG_TTY=$(tty) export EDITOR=/usr/bin/vim + if [ $(which clang 2>/dev/null) ]; then export CC=clang export CXX=clang +elif [[ $(which tcc 2>/dev/null) && !$(which gcc 2>/dev/null) ]]; then + export CC=tcc fi alias sudo="sudo " |