mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
macos - Fix crash when running native arm64 LLVM
This commit is contained in:
parent
f367703574
commit
4f97ea8da7
@ -517,7 +517,7 @@ std::string jit_compiler::triple1()
|
|||||||
#elif defined(__APPLE__) && defined(ARCH_X64)
|
#elif defined(__APPLE__) && defined(ARCH_X64)
|
||||||
return llvm::Triple::normalize("x86_64-unknown-linux-gnu");
|
return llvm::Triple::normalize("x86_64-unknown-linux-gnu");
|
||||||
#elif defined(__APPLE__) && defined(ARCH_ARM64)
|
#elif defined(__APPLE__) && defined(ARCH_ARM64)
|
||||||
return llvm::Triple::normalize("aarch64-unknown-linux-gnu");
|
return llvm::Triple::normalize("aarch64-unknown-linux-android"); // Set environment to android to reserve x18
|
||||||
#else
|
#else
|
||||||
return llvm::Triple::normalize(llvm::sys::getProcessTriple());
|
return llvm::Triple::normalize(llvm::sys::getProcessTriple());
|
||||||
#endif
|
#endif
|
||||||
@ -532,7 +532,7 @@ std::string jit_compiler::triple2()
|
|||||||
#elif defined(__APPLE__) && defined(ARCH_X64)
|
#elif defined(__APPLE__) && defined(ARCH_X64)
|
||||||
return llvm::Triple::normalize("x86_64-unknown-linux-gnu");
|
return llvm::Triple::normalize("x86_64-unknown-linux-gnu");
|
||||||
#elif defined(__APPLE__) && defined(ARCH_ARM64)
|
#elif defined(__APPLE__) && defined(ARCH_ARM64)
|
||||||
return llvm::Triple::normalize("aarch64-unknown-linux-gnu");
|
return llvm::Triple::normalize("aarch64-unknown-linux-android"); // Set environment to android to reserve x18
|
||||||
#else
|
#else
|
||||||
return llvm::Triple::normalize(llvm::sys::getProcessTriple());
|
return llvm::Triple::normalize(llvm::sys::getProcessTriple());
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user