[llvm] [offload] Standalone build fixes (PR #118173)
Michał Górny via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 1 07:04:25 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:
Ohh, that definitely makes sense!
https://github.com/llvm/llvm-project/pull/118173
More information about the llvm-commits
mailing list