Skip to content

Commit 27afb36

Browse files
committed
[sanitizer] Remove unneeded ccache -s
1 parent 06ea8c4 commit 27afb36

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

zorg/buildbot/builders/sanitizers/buildbot_functions.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,11 @@ function build_stage1_clang_impl {
176176
if clang -v ; then
177177
cmake_stage1_options+=" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"
178178
fi
179-
ccache -z || true
180179
(cd ${STAGE1_DIR} && cmake ${cmake_stage1_options} $LLVM && ninja) || {
181180
touch "${STAGE1_DIR}/delete_next_time"
182181
return 1
183182
}
184183
md5sum ${STAGE1_DIR}/bin/clang || true
185-
ccache -s || true
186184
}
187185

188186
function build_stage1_clang {
@@ -470,8 +468,6 @@ function build_stage3 {
470468
local sanitizer_name=$1
471469
echo @@@BUILD_STEP build stage3/$sanitizer_name build@@@
472470

473-
ccache -z || true
474-
475471
local build_dir=llvm_build2_${sanitizer_name}
476472

477473
local clang_path=$ROOT/${STAGE2_DIR}/bin
@@ -482,13 +478,15 @@ function build_stage3 {
482478
# FIXME: clangd tests fail.
483479
stage3_projects='clang;lld'
484480
fi
481+
# -DLLVM_CCACHE_BUILD=OFF to track real build time.
485482
(cd ${build_dir} && \
486483
cmake \
487484
${CMAKE_COMMON_OPTIONS} \
488485
-DLLVM_ENABLE_PROJECTS="${stage3_projects}" \
489486
-DCMAKE_C_COMPILER=${clang_path}/clang \
490487
-DCMAKE_CXX_COMPILER=${clang_path}/clang++ \
491488
-DCMAKE_CXX_FLAGS="${sanitizer_cflags}" \
489+
-DLLVM_CCACHE_BUILD=OFF \
492490
$LLVM && \
493491
/usr/bin/time -o ${ROOT}/time.txt -- ninja ) || {
494492
build_failure
@@ -498,8 +496,6 @@ function build_stage3 {
498496
(md5sum ${build_dir}/bin/clang* > ${ROOT}/md5.txt) || true
499497

500498
upload_stats stage3
501-
502-
ccache -s || true
503499
}
504500

505501
function build_stage3_msan {

0 commit comments

Comments
 (0)