index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Matti Niemenmaa <matti.niemenmaa+git@iki.fi> | 2021-01-30 19:46:40 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2021-02-08 14:24:49 +1000 |
commit | 9e425cd1ea4a5fe7e7d7f1daa225eed37650dafc (patch) | |
tree | 63c3519fa7dbb53f0997b06c3d4c724fdd015fab /scripts | |
parent | 2b8d00b7993435a8dc6f560b508a33050830ceec (diff) |
-rw-r--r-- | scripts/libmakepkg/buildenv/compiler.sh.in | 4 |
diff --git a/scripts/libmakepkg/buildenv/compiler.sh.in b/scripts/libmakepkg/buildenv/compiler.sh.in index 33f19288..1cd5a019 100644 --- a/scripts/libmakepkg/buildenv/compiler.sh.in +++ b/scripts/libmakepkg/buildenv/compiler.sh.in @@ -44,7 +44,9 @@ buildenv_ccache() { buildenv_distcc() { if check_buildoption "distcc" "y"; then if (( using_ccache )); then - export CCACHE_PREFIX="${CCACHE_PREFIX:+$CCACHE_PREFIX }distcc" + if [[ " $CCACHE_PREFIX " != *" distcc "* ]]; then + export CCACHE_PREFIX="${CCACHE_PREFIX:+$CCACHE_PREFIX }distcc" + fi export CCACHE_BASEDIR="$srcdir" elif [[ -d /usr/lib/distcc/bin ]]; then export PATH="/usr/lib/distcc/bin:$PATH" |