Skip to content

Commit a4c558c

Browse files
authored
[AMDGPU][Offload] Clean CMake to let updates take effect (#371)
We want to clean the build directory in order for changes to the in-tree CMake cache file to take effect. Otherwise the local config takes precedence.
1 parent 1d4edfc commit a4c558c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def main(argv):
1818
# We have to "hard clean" the build directory, since we use a CMake cache
1919
# If we do not do this, the resident config will take precedence and changes
2020
# to the cache file are ignored.
21-
run_command(["rm", "-r *"])
21+
cwd = os.getcwd()
22+
utils.clean_dir(cwd)
2223

2324
with step("cmake", halt_on_fail=True):
2425
# TODO make the name of the cache file an argument to the script.

0 commit comments

Comments
 (0)