Skip to content

Commit

Permalink
Add version string to sysimg triple (#51830)
Browse files Browse the repository at this point in the history
(cherry picked from commit abd00d0)
  • Loading branch information
gbaraldi authored and KristofferC committed Mar 27, 2024
1 parent f6a3c5f commit 8c6595b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/aotcompile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,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<Reloc::Model> RelocModel;
if (TheTriple.isOSLinux() || TheTriple.isOSFreeBSD()) {
Expand Down

0 comments on commit 8c6595b

Please sign in to comment.