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_ID="$BUILDID"
|
||||||
export CUBERITE_BUILD_DATETIME="`date`"
|
export CUBERITE_BUILD_DATETIME="`date`"
|
||||||
|
|
||||||
export CCACHE_CPP2=true
|
if ! [ -x "$(command -v ccache)" ]
|
||||||
CACHE_ARGS="-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
|
then
|
||||||
|
export CCACHE_CPP2=true
|
||||||
|
CACHE_ARGS="-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
|
||||||
|
fi
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
CXX=$CXXCOMP CC=$CCOMP cmake . -DNO_NATIVE_OPTIMIZATION=1 -DBUILD_TOOLS=1 ${CACHE_ARGS} ${TOOLCHAINFILE} ${COMPILEMODE} ${FORCE32}
|
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