Skip to content

Commit f32cd61

Browse files
committed
[NFC][sanitizer] Use same dir with CCACHE
Looks like we have better caching between builds on the same revision if the path stays the same.
1 parent 31f91c9 commit f32cd61

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

zorg/buildbot/builders/sanitizers/buildbot_cmake.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,13 @@ CMAKE_COMMON_OPTIONS+=" ${CMAKE_ARGS}"
5656
buildbot_update
5757

5858
function build {
59-
BUILD_DIR="build_${1}"
59+
if [[ ${CMAKE_COMMON_OPTIONS} =~ "LLVM_CCACHE_BUILD=ON" ]] ; then
60+
BUILD_DIR=build_default
61+
rm -rf ${BUILD_DIR}
62+
else
63+
BUILD_DIR="build_${1}"
64+
fi
65+
6066
echo "@@@BUILD_STEP build compiler-rt ${1}@@@"
6167
[[ ! -f "${BUILD_DIR}/delete_next_time" ]] || rm -rf "${BUILD_DIR}"
6268
mkdir -p ${BUILD_DIR}

0 commit comments

Comments
 (0)