Skip to content

Commit 377784a

Browse files
authored
[AMDGPU] Fix CMake cache builder (#369)
We need to clean the build directory to take changes to the CMake cache file have any effect for the actual build config.
1 parent 76e9aa7 commit 377784a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ def main(argv):
1414
offload_base_dir = os.path.join(source_dir, "offload")
1515
of_cmake_cache_base_dir = os.path.join(offload_base_dir, "cmake/caches")
1616

17+
with step("clean build", halt_on_fail=True):
18+
# We have to "hard clean" the build directory, since we use a CMake cache
19+
# If we do not do this, the resident config will take precedence and changes
20+
# to the cache file are ignored.
21+
run_command("rm -r *")
22+
1723
with step("cmake", halt_on_fail=True):
1824
# TODO make the name of the cache file an argument to the script.
1925
cmake_cache_file = os.path.join(of_cmake_cache_base_dir, "AMDGPUBot.cmake")

0 commit comments

Comments
 (0)