mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-21 18:22:53 +01:00
Force ELF on macOS
This commit is contained in:
parent
1c0ca194dc
commit
509d31ad89
@ -688,9 +688,13 @@ static Triple::ObjectFormatType getDefaultFormat(const Triple &T) {
|
||||
case Triple::thumb:
|
||||
case Triple::x86:
|
||||
case Triple::x86_64:
|
||||
if (T.isOSDarwin())
|
||||
return Triple::MachO;
|
||||
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.
|
||||
//if (T.isOSDarwin())
|
||||
// return Triple::MachO;
|
||||
//else
|
||||
if (T.isOSWindows())
|
||||
return Triple::COFF;
|
||||
return Triple::ELF;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user