[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 07:02:41 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:
I mean `${gpu_loader_tgt}` is either `"amdhsa-loader"` or `"nvptx-loader"`, so the check `if(gpu_loader_tgt)` is always true, isn't it?
https://github.com/llvm/llvm-project/pull/84667
More information about the libc-commits
mailing list