[Openmp-commits] [openmp] [Libomptarget] Output the DeviceRTL alongside the other libraries (PR #73705)

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Tue Nov 28 14:27:46 PST 2023


================
@@ -301,7 +301,10 @@ endforeach()
 
 # Archive all the object files generated above into a static library
 add_library(omptarget.devicertl STATIC)
-set_target_properties(omptarget.devicertl PROPERTIES LINKER_LANGUAGE CXX)
+set_target_properties(omptarget.devicertl PROPERTIES
+                      LINKER_LANGUAGE CXX
+                      ARCHIVE_OUTPUT_DIRECTORY ${LLVM_LIBRARY_OUTPUT_INTDIR}
----------------
shiltian wrote:

I guess that's because `install(TARGETS omptarget.devicertl ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR})` overrides it, which is what we need; otherwise it will be installed into where LLVM is installed, which is not right if build standalone.

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


More information about the Openmp-commits mailing list