Skip to content

Commit abd00d0

Browse files
authored
Add version string to sysimg triple (#51830)
1 parent 0be0b38 commit abd00d0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/aotcompile.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,13 @@ void jl_dump_native_impl(void *native_code,
15001500
TheTriple.setObjectFormat(Triple::COFF);
15011501
} else if (TheTriple.isOSDarwin()) {
15021502
TheTriple.setObjectFormat(Triple::MachO);
1503-
TheTriple.setOS(llvm::Triple::MacOSX);
1503+
SmallString<16> Str;
1504+
Str += "macosx";
1505+
if (TheTriple.isAArch64())
1506+
Str += "11.0.0"; // Update this if MACOSX_VERSION_MIN changes
1507+
else
1508+
Str += "10.14.0";
1509+
TheTriple.setOSName(Str);
15041510
}
15051511
Optional<Reloc::Model> RelocModel;
15061512
if (TheTriple.isOSLinux() || TheTriple.isOSFreeBSD()) {

0 commit comments

Comments
 (0)