Don't build using ccache when it doesn't exist
This commit is contained in:
parent
3148f6511e
commit
8f80019b78
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user