Use XDG base dirs for ccache
This commit is contained in:
parent
9164432cc2
commit
ec8675fa86
3
zshenv
3
zshenv
@ -20,6 +20,7 @@ PATH=$HOME/.local/bin:$PATH
|
|||||||
MANPATH=$HOME/.local/share/man:$MANPATH
|
MANPATH=$HOME/.local/share/man:$MANPATH
|
||||||
INFOPATH=$HOME/.local/share/info:$INFOPATH
|
INFOPATH=$HOME/.local/share/info:$INFOPATH
|
||||||
|
|
||||||
|
# Add ccache to the PATH and use XDG base dir paths
|
||||||
if [ `uname` = Darwin ]; then
|
if [ `uname` = Darwin ]; then
|
||||||
[ -f /usr/local/bin/ccache ] && \
|
[ -f /usr/local/bin/ccache ] && \
|
||||||
PATH=/usr/local/opt/ccache/libexec:$PATH
|
PATH=/usr/local/opt/ccache/libexec:$PATH
|
||||||
@ -30,6 +31,8 @@ elif [ -f /usr/bin/ccache ]; then
|
|||||||
PATH=/usr/lib/ccache:$PATH
|
PATH=/usr/lib/ccache:$PATH
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
export CCACHE_CONFIGPATH=$HOME/.config/ccache
|
||||||
|
export CCACHE_DIR=$HOME/.cache/ccache
|
||||||
|
|
||||||
# Remove duplicates from environment variables
|
# Remove duplicates from environment variables
|
||||||
typeset -U fpath
|
typeset -U fpath
|
||||||
|
Loading…
x
Reference in New Issue
Block a user