Unverified Commit 814c054e authored by Yury Plyakhin's avatar Yury Plyakhin Committed by GitHub
Browse files

[libsycl] Add explicit LLVMSupport dependency (#195371)

libLLVMSYCL.so includes <llvm/Object/OffloadBinary.h>, which
transitively instantiates LLVMSupport templates.
With -Wl,-z,defs those symbols must be on the direct link line.
LLVMObject (which contains OffloadBinary.cpp) was already linked, but
LLVMSupport was not, causing undefined-reference errors in clean builds.
parent 51d52c2a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ function(add_sycl_rt_library LIB_TARGET_NAME LIB_OBJ_NAME LIB_OUTPUT_NAME)
      ${CMAKE_THREAD_LIBS_INIT}
      LLVMOffload
      LLVMObject
      LLVMSupport
  )

  set_target_properties(${LIB_TARGET_NAME}