[llvm] [Offload] Do not link every target for JIT (PR #92013)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Mon May 13 13:16:41 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)
----------------
jhuber6 wrote:

Because we shouldn't link against AMDGPU if the user didn't request to build the `amdgpu` plugin.

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


More information about the llvm-commits mailing list