We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14050a6 commit 1ae8018Copy full SHA for 1ae8018
runtime/jit-rt/cpp-so/jit_context.cpp
@@ -113,7 +113,9 @@ static llvm::orc::LLJITBuilder buildLLJITforLDC() {
113
// we override the object linking layer if we are using LLVM JITLink.
114
// For RuntimeDyld, we use LLJIT's default setup process
115
// (which includes a lot of platform-related workarounds we need)
116
-#ifdef LDC_JITRT_USE_JITLINK
+ // on LLVM 20+, LLJIT will auto-configure eh-frame plugin and
117
+ // we avoid configuring the eh-frame plugin ourselves to avoid double registration
118
+#if defined(LDC_JITRT_USE_JITLINK) && LDC_LLVM_VER < 2000
119
.setObjectLinkingLayerCreator([&](llvm::orc::ExecutionSession &ES,
120
const llvm::Triple &TT) {
121
auto linker = std::make_unique<llvm::orc::ObjectLinkingLayer>(
0 commit comments