summaryrefslogtreecommitdiff
path: root/libc/cmake
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-04-17 09:33:08 -0500
committerJoseph Huber <jhuber6@vols.utk.edu>2023-04-17 09:37:08 -0500
commit7547d0b602f59cf3fedb17e280014d2708f427da (patch)
tree5f0eaaf6be04bf622c4047c75cdc98d021b82cec /libc/cmake
parentc3ec3ed2a1f3faf30ad2adde426a2f3b5002f3ac (diff)
downloadllvm-7547d0b602f59cf3fedb17e280014d2708f427da.tar.gz
[libc] Add dependency on the loader for GPU tests
Summary: We need a dependency here so the loader is up-to-date whenever we run the tests again.
Diffstat (limited to 'libc/cmake')
-rw-r--r--libc/cmake/modules/LLVMLibCTestRules.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/cmake/modules/LLVMLibCTestRules.cmake b/libc/cmake/modules/LLVMLibCTestRules.cmake
index a1ec48360030..d1ce34f91576 100644
--- a/libc/cmake/modules/LLVMLibCTestRules.cmake
+++ b/libc/cmake/modules/LLVMLibCTestRules.cmake
@@ -525,6 +525,7 @@ function(add_integration_test test_name)
# Tests on the GPU require an external loader utility to launch the kernel.
if(TARGET libc.utils.gpu.loader)
+ add_dependencies(${fq_build_target_name} libc.utils.gpu.loader)
get_target_property(gpu_loader_exe libc.utils.gpu.loader "EXECUTABLE")
endif()