1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

[ppu] fix a macOS arm64 regression

Always override the LLVM triple to prevent linking errors.
This commit is contained in:
sguo35 2022-06-17 12:25:38 -07:00 committed by Ivan
parent 4262794668
commit d2614d01fd

View File

@ -871,6 +871,10 @@ jit_compiler::jit_compiler(const std::unordered_map<std::string, u64>& _link, co
std::string result; std::string result;
auto null_mod = std::make_unique<llvm::Module> ("null_", *m_context); auto null_mod = std::make_unique<llvm::Module> ("null_", *m_context);
#if defined(__APPLE__) && defined(ARCH_ARM64)
// Force override triple on Apple arm64 or we'll get linking errors.
null_mod->setTargetTriple(llvm::Triple::normalize(utils::c_llvm_default_triple));
#endif
if (_link.empty()) if (_link.empty())
{ {