[llvm] [offload] Standalone build fixes (PR #118173)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 30 09:19:50 PST 2024
=?utf-8?q?Michał_Górny?= <mgorny at gentoo.org>,
=?utf-8?q?Michał_Górny?= <mgorny at gentoo.org>,
=?utf-8?q?Michał_Górny?= <mgorny at gentoo.org>,
=?utf-8?q?Michał_Górny?= <mgorny at gentoo.org>,
=?utf-8?q?Michał_Górny?= <mgorny at gentoo.org>,
=?utf-8?q?Michał_Górny?= <mgorny at gentoo.org>,
=?utf-8?q?Michał_Górny?= <mgorny at gentoo.org>,
=?utf-8?q?Michał_Górny?= <mgorny at gentoo.org>,
=?utf-8?q?Michał_Górny?= <mgorny at gentoo.org>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/118173 at github.com>
================
@@ -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()
----------------
jhuber6 wrote:
`add_target_library` or whatever it's called. The JIT library linking should probably also be moved there. Looking at it now, I'm not sure how it works since it's doing a private `link_libraries` on an object library, which has no link step.
https://github.com/llvm/llvm-project/pull/118173
More information about the llvm-commits
mailing list