From abd00d09ce37c2e1a09efde6bb5a588f7b33cd72 Mon Sep 17 00:00:00 2001 From: Gabriel Baraldi Date: Mon, 23 Oct 2023 23:31:32 -0300 Subject: [PATCH] Add version string to sysimg triple (#51830) --- src/aotcompile.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/aotcompile.cpp b/src/aotcompile.cpp index 2e1a9d2418eaa..6f55319e60b7d 100644 --- a/src/aotcompile.cpp +++ b/src/aotcompile.cpp @@ -1500,7 +1500,13 @@ void jl_dump_native_impl(void *native_code, TheTriple.setObjectFormat(Triple::COFF); } else if (TheTriple.isOSDarwin()) { TheTriple.setObjectFormat(Triple::MachO); - TheTriple.setOS(llvm::Triple::MacOSX); + SmallString<16> Str; + Str += "macosx"; + if (TheTriple.isAArch64()) + Str += "11.0.0"; // Update this if MACOSX_VERSION_MIN changes + else + Str += "10.14.0"; + TheTriple.setOSName(Str); } Optional RelocModel; if (TheTriple.isOSLinux() || TheTriple.isOSFreeBSD()) {