[llvm] [Offload] Do not link every target for JIT (PR #92013)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Mon May 13 13:15:07 PDT 2024
================
@@ -28,7 +28,11 @@ if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$" AND CMAKE
endif()
# Create the library and add the default arguments.
-add_target_library(omptarget.rtl.amdgpu AMDGPU)
+if("AMDGPU" IN_LIST LLVM_TARGETS_TO_BUILD)
----------------
shiltian wrote:
Why don't we put this logic into `add_target_library`?
https://github.com/llvm/llvm-project/pull/92013
More information about the llvm-commits
mailing list