Skip to content

Commit

Permalink
[ORC][LLJIT] Use JITLink by default on ELF/x86-64.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lhames committed Apr 17, 2023
1 parent 2cd1592 commit 85c649b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ Error LLJITBuilderState::prepareForConstruction() {
UseJITLink = !TT.isOSBinFormatCOFF();
break;
case Triple::x86_64:
UseJITLink = TT.isOSBinFormatMachO();
UseJITLink = !TT.isOSBinFormatCOFF();
break;
default:
break;
Expand Down

0 comments on commit 85c649b

Please sign in to comment.