Skip to content

Commit 85c649b

Browse files
committed
[ORC][LLJIT] Use JITLink by default on ELF/x86-64.
This patch switches LLJIT's default JIT linker for ELF/x86-64 from RuntimeDyld to JITLink. Most clients should not be affected, but if you were explicitly accessing the old RTDyldObjectLinkingLayer (e.g. to install JITEventListeners) you will need to either force use of RuntimeDyld (following the example in llvm/examples/OrcV2Examples/LLJITWithCustomObjectLinkingLayer), or switch to using JITLink plugins instead.
1 parent 2cd1592 commit 85c649b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: llvm/lib/ExecutionEngine/Orc/LLJIT.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ Error LLJITBuilderState::prepareForConstruction() {
750750
UseJITLink = !TT.isOSBinFormatCOFF();
751751
break;
752752
case Triple::x86_64:
753-
UseJITLink = TT.isOSBinFormatMachO();
753+
UseJITLink = !TT.isOSBinFormatCOFF();
754754
break;
755755
default:
756756
break;

0 commit comments

Comments
 (0)