[libc-commits] [libc] 7547d0b - [libc] Add dependency on the loader for GPU tests

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Mon Apr 17 07:38:31 PDT 2023


Author: Joseph Huber
Date: 2023-04-17T09:37:08-05:00
New Revision: 7547d0b602f59cf3fedb17e280014d2708f427da

URL: https://github.com/llvm/llvm-project/commit/7547d0b602f59cf3fedb17e280014d2708f427da
DIFF: https://github.com/llvm/llvm-project/commit/7547d0b602f59cf3fedb17e280014d2708f427da.diff

LOG: [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.

Added: 
    

Modified: 
    libc/cmake/modules/LLVMLibCTestRules.cmake

Removed: 
    


################################################################################
diff  --git a/libc/cmake/modules/LLVMLibCTestRules.cmake b/libc/cmake/modules/LLVMLibCTestRules.cmake
index a1ec483600302..d1ce34f915764 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()
 


        


More information about the libc-commits mailing list