Skip to content

Commit 5f56f68

Browse files
authored
Apply version constraints to iOS objects (#8546)
1 parent c440596 commit 5f56f68

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/LLVM_Runtime_Linker.cpp

+9-3
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,16 @@ std::optional<llvm::VersionTuple> get_os_version_constraint(const llvm::Triple &
423423
return std::nullopt;
424424
}
425425

426-
if (triple.getOS() == llvm::Triple::MacOSX && triple.getArch() == llvm::Triple::x86_64) {
427-
// At time of writing (June 2024), this is one version prior
426+
if (triple.isMacOSX() && triple.isX86()) {
427+
// At time of writing (January 2025), this is one version prior
428428
// to the oldest version still supported by Apple.
429-
return llvm::VersionTuple(11, 0, 0);
429+
return llvm::VersionTuple(12, 0, 0);
430+
}
431+
432+
if (triple.isiOS()) {
433+
// At time of writing (January 2025), this is one version prior
434+
// to the oldest version still supported by Apple.
435+
return llvm::VersionTuple(17, 0, 0);
430436
}
431437

432438
llvm::VersionTuple t = triple.getMinimumSupportedOSVersion();

0 commit comments

Comments
 (0)