fix(compiler) macOS Aarch64 ABI is not SystemV

This commit is contained in:
ptitSeb
2021-09-28 10:01:16 +02:00
parent dc7e8b1027
commit 12135eb062

View File

@@ -117,7 +117,11 @@ impl LLVM {
// MachO, they check whether the OS is set to Darwin.
//
// Since both linux and darwin use SysV ABI, this should work.
wasmer_compiler::OperatingSystem::Linux
// but not in the case of Aarch64, there the ABI is slightly different
match target.triple().architecture {
Architecture::Aarch64(_) => target.triple().operating_system,
_ => wasmer_compiler::OperatingSystem::Linux,
}
} else {
target.triple().operating_system
};