1
0

Don't build using ccache when it doesn't exist

This commit is contained in:
Alexander Harkness 2020-04-01 20:47:25 +01:00
parent 3148f6511e
commit 8f80019b78
No known key found for this signature in database
GPG Key ID: 5187245ADF160B76

View File

@ -56,8 +56,11 @@ export CUBERITE_BUILD_SERIES_NAME="$SERVERNAME $TARGET $COMPILEMODE ($BRANCH)"
export CUBERITE_BUILD_ID="$BUILDID"
export CUBERITE_BUILD_DATETIME="`date`"
if ! [ -x "$(command -v ccache)" ]
then
export CCACHE_CPP2=true
CACHE_ARGS="-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
fi
# Build
CXX=$CXXCOMP CC=$CCOMP cmake . -DNO_NATIVE_OPTIMIZATION=1 -DBUILD_TOOLS=1 ${CACHE_ARGS} ${TOOLCHAINFILE} ${COMPILEMODE} ${FORCE32}