summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2020-04-01 21:47:25 +0200
committerAlexander Harkness <me@bearbin.net>2020-04-01 21:47:25 +0200
commit8f80019b782721fb11049e9d67c32c4a16834b7a (patch)
treea7a380e9fb7999f61f2cb3003333b35e118054ff
parentRemove substitution syntax breaking mac builds (diff)
downloadcuberite-8f80019b782721fb11049e9d67c32c4a16834b7a.tar
cuberite-8f80019b782721fb11049e9d67c32c4a16834b7a.tar.gz
cuberite-8f80019b782721fb11049e9d67c32c4a16834b7a.tar.bz2
cuberite-8f80019b782721fb11049e9d67c32c4a16834b7a.tar.lz
cuberite-8f80019b782721fb11049e9d67c32c4a16834b7a.tar.xz
cuberite-8f80019b782721fb11049e9d67c32c4a16834b7a.tar.zst
cuberite-8f80019b782721fb11049e9d67c32c4a16834b7a.zip
-rwxr-xr-xjenkinsbuild.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/jenkinsbuild.sh b/jenkinsbuild.sh
index 5e6f4818d..07531deb7 100755
--- a/jenkinsbuild.sh
+++ b/jenkinsbuild.sh
@@ -56,8 +56,11 @@ export CUBERITE_BUILD_SERIES_NAME="$SERVERNAME $TARGET $COMPILEMODE ($BRANCH)"
export CUBERITE_BUILD_ID="$BUILDID"
export CUBERITE_BUILD_DATETIME="`date`"
-export CCACHE_CPP2=true
-CACHE_ARGS="-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
+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}