There was an error while loading. Please reload this page.
1 parent 1c0ca19 commit 509d31aCopy full SHA for 509d31a
lib/Support/Triple.cpp
@@ -688,9 +688,13 @@ static Triple::ObjectFormatType getDefaultFormat(const Triple &T) {
688
case Triple::thumb:
689
case Triple::x86:
690
case Triple::x86_64:
691
- if (T.isOSDarwin())
692
- return Triple::MachO;
693
- else if (T.isOSWindows())
+ // Workaround for macOS
+ // LLVM fails to correctly set up trampolines with Mach-O,
+ // so we just force LLVM to use ELF instead.
694
+ //if (T.isOSDarwin())
695
+ // return Triple::MachO;
696
+ //else
697
+ if (T.isOSWindows())
698
return Triple::COFF;
699
return Triple::ELF;
700
0 commit comments