[clang] [clang][darwin] macOS no longer infers a minimum deployment version from the OS version (PR #181958)
Ian Anderson via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 18 12:00:42 PST 2026
================
@@ -1938,9 +1938,13 @@ struct DarwinPlatform {
const DarwinSDKInfo &SDKInfo) {
const DarwinSDKInfo::SDKPlatformInfo PlatformInfo =
SDKInfo.getCanonicalPlatformInfo();
- DarwinPlatform Result(InferredFromSDK,
- getPlatformFromOS(PlatformInfo.getOS()),
- SDKInfo.getVersion());
+ const llvm::Triple::OSType OS = PlatformInfo.getOS();
+ VersionTuple Version = SDKInfo.getVersion();
+ if (OS == llvm::Triple::MacOSX) {
----------------
ian-twilightcoder wrote:
Oh yeah (I originally had this on two lines with a VersionString local)
https://github.com/llvm/llvm-project/pull/181958
More information about the cfe-commits
mailing list