From ca526a0ce546c1275a6f334ed7fe677b3abcabff Mon Sep 17 00:00:00 2001 From: JP Lehr Date: Thu, 14 Aug 2025 09:39:13 -0500 Subject: [PATCH] [HIP] Prefer ccache over incremental build It slipped my attention that this builder was (still?) doing incremental builds. This is highly not recommended by the community. This patch nukes an existing build dir completely to start from a clean state and rely on ccache to bring build-time improvements. --- zorg/buildbot/builders/annotated/hip-build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zorg/buildbot/builders/annotated/hip-build.sh b/zorg/buildbot/builders/annotated/hip-build.sh index e699fa18c..83b4b095e 100755 --- a/zorg/buildbot/builders/annotated/hip-build.sh +++ b/zorg/buildbot/builders/annotated/hip-build.sh @@ -71,6 +71,12 @@ git -C "${TESTSUITE_ROOT}" reset --hard origin/main # Start building LLVM, Clang, Lld, clang-tools-extra, compiler-rt build_llvm() { build_step "Configure LLVM Build" + +# Nuke the build dir to start from a cleaner state and rely on ccache for build time +if [ -d "${LLVM_BUILD_DIR}" ]; then + rm -rf "${LLVM_BUILD_DIR}" +fi + mkdir -p "${LLVM_BUILD_DIR}" cd "${LLVM_BUILD_DIR}" cmake -G Ninja \ @@ -136,4 +142,3 @@ update_test_suite build_test_suite exit 0 -