Fix distcc when used with ccache
This commit is contained in:
parent
3c28c30133
commit
713937f4cd
1 changed files with 4 additions and 6 deletions
|
@ -43,13 +43,11 @@ buildenv_ccache() {
|
||||||
|
|
||||||
buildenv_distcc() {
|
buildenv_distcc() {
|
||||||
if check_buildoption "distcc" "y"; then
|
if check_buildoption "distcc" "y"; then
|
||||||
if (( using_ccache )); then
|
if [[ -d /usr/lib/distcc/bin ]]; then
|
||||||
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"
|
export PATH="/usr/lib/distcc/bin:$PATH"
|
||||||
|
if (( using_ccache )); then
|
||||||
|
export CCACHE_BASEDIR="$srcdir"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export DISTCC_HOSTS
|
export DISTCC_HOSTS
|
||||||
|
|
Loading…
Add table
Reference in a new issue