[libc] [llvm] [libc] Build the GPU during the projects setup like libc-hdrgen (PR #84667)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 11 07:07:16 PDT 2024


================
@@ -56,11 +37,10 @@ elseif(TARGET nvptx-loader AND LIBC_TARGET_ARCHITECTURE_IS_NVPTX)
   )
 endif()
 
-if(TARGET libc.utils.gpu.loader)
-  get_target_property(gpu_loader_tgt libc.utils.gpu.loader "TARGET")
+foreach(gpu_loader_tgt amdhsa-loader nvptx-loader)
   if(gpu_loader_tgt)
----------------
jhuber6 wrote:

Thanks for catching that, people who didn't have both CUDA and HSA on their system would've gotten install errors.

https://github.com/llvm/llvm-project/pull/84667


More information about the llvm-commits mailing list