summaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-10 18:02:41 +0100
committerDavid Robillard <d@drobilla.net>2020-11-10 18:02:41 +0100
commitc2a950a671fcbbb41636ed1c895d0db6cefa4ad8 (patch)
tree732169986658089fbe48218065051e66cfdc84ed /bash
parent387b6c23f1ea780ec1a5fe47ab13e0b5b80d4cbc (diff)
downloaddotfiles-c2a950a671fcbbb41636ed1c895d0db6cefa4ad8.tar.gz
dotfiles-c2a950a671fcbbb41636ed1c895d0db6cefa4ad8.tar.bz2
dotfiles-c2a950a671fcbbb41636ed1c895d0db6cefa4ad8.zip
Update ccache configuration and make it more portable
Diffstat (limited to 'bash')
-rw-r--r--bash/.bashrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 2e4e204..55e470c 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -104,8 +104,6 @@ export CFLAGS="-O2 -march=native -fomit-frame-pointer -DNDEBUG -ftree-vectorize"
export CXXFLAGS="$CFLAGS"
export GTK_IM_MODULE="xim"
export EDITOR="emacsclient"
-export CXX=/usr/lib/ccache/g++-6
-export CC=/usr/lib/ccache/gcc-6
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig
# colorize man
@@ -138,6 +136,8 @@ if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
fi
-if [ -d "/usr/lib/ccache/bin" ] ; then
+if [ -d "/usr/lib/ccache/bin" ] ; then # Arch
PATH="/usr/lib/ccache/bin:$PATH"
+elif [ -d "/usr/lib/ccache" ] ; then # Debian
+ PATH="/usr/lib/ccache:$PATH"
fi