Skip to content

Commit

Permalink
[AMDGPU][Offload] Clean CMake to let updates take effect (#371)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jplehr authored Feb 4, 2025
1 parent 1d4edfc commit a4c558c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def main(argv):
# We have to "hard clean" the build directory, since we use a CMake cache
# If we do not do this, the resident config will take precedence and changes
# to the cache file are ignored.
run_command(["rm", "-r *"])
cwd = os.getcwd()
utils.clean_dir(cwd)

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

0 comments on commit a4c558c

Please sign in to comment.