[llvm] [offload] Standalone build fixes (PR #118173)

Michał Górny via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 30 09:02:18 PST 2024


================
@@ -7,7 +7,10 @@ add_library(PluginCommon OBJECT
   src/RPC.cpp
   src/Utils/ELF.cpp
 )
-add_dependencies(PluginCommon intrinsics_gen LLVMProfileData)
+add_dependencies(PluginCommon intrinsics_gen)
+if (TARGET LLVMProfileData)
+  add_dependencies(PluginCommon LLVMProfileData)
+endif()
----------------
mgorny wrote:

I'm sorry but I don't understand the "move it with the others" part. I don't really understand why an explicit dependency was added in the first place — I thought linking against the library implies that.

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


More information about the llvm-commits mailing list