Skip to content

Commit

Permalink
Apply version constraints to iOS objects (#8546)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreinking authored Jan 12, 2025
1 parent c440596 commit 5f56f68
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/LLVM_Runtime_Linker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,16 @@ std::optional<llvm::VersionTuple> get_os_version_constraint(const llvm::Triple &
return std::nullopt;
}

if (triple.getOS() == llvm::Triple::MacOSX && triple.getArch() == llvm::Triple::x86_64) {
// At time of writing (June 2024), this is one version prior
if (triple.isMacOSX() && triple.isX86()) {
// At time of writing (January 2025), this is one version prior
// to the oldest version still supported by Apple.
return llvm::VersionTuple(11, 0, 0);
return llvm::VersionTuple(12, 0, 0);
}

if (triple.isiOS()) {
// At time of writing (January 2025), this is one version prior
// to the oldest version still supported by Apple.
return llvm::VersionTuple(17, 0, 0);
}

llvm::VersionTuple t = triple.getMinimumSupportedOSVersion();
Expand Down

0 comments on commit 5f56f68

Please sign in to comment.