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

via libc-commits libc-commits at lists.llvm.org
Mon Mar 11 06:56:07 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)
----------------
lntue wrote:

Are they always available to install now?  If so remove the `if` statement.

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


More information about the libc-commits mailing list