mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-15 04:00:56 +00:00
[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.
This commit is contained in:
parent
2cd15925f4
commit
85c649bc02
@ -750,7 +750,7 @@ Error LLJITBuilderState::prepareForConstruction() {
|
||||
UseJITLink = !TT.isOSBinFormatCOFF();
|
||||
break;
|
||||
case Triple::x86_64:
|
||||
UseJITLink = TT.isOSBinFormatMachO();
|
||||
UseJITLink = !TT.isOSBinFormatCOFF();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user