File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -3136,7 +3136,15 @@ static bool sdkSupportsBuiltinModules(
3136
3136
case Darwin::MacOS:
3137
3137
return SDKVersion >= VersionTuple (15U );
3138
3138
case Darwin::IPhoneOS:
3139
- return SDKVersion >= VersionTuple (18U );
3139
+ switch (TargetEnvironment) {
3140
+ case Darwin::MacCatalyst:
3141
+ // Mac Catalyst uses `-target arm64-apple-ios18.0-macabi` so the platform
3142
+ // is iOS, but it builds with the macOS SDK, so it's the macOS SDK version
3143
+ // that's relevant.
3144
+ return SDKVersion >= VersionTuple (15U );
3145
+ default :
3146
+ return SDKVersion >= VersionTuple (18U );
3147
+ }
3140
3148
case Darwin::TvOS:
3141
3149
return SDKVersion >= VersionTuple (18U );
3142
3150
case Darwin::WatchOS:
Original file line number Diff line number Diff line change 1
- {"Version" :" 990 .0" , "MaximumDeploymentTarget" : " 99 .0.99" }
1
+ {"Version" :" 15 .0" , "MaximumDeploymentTarget" : " 15 .0.99" }
Original file line number Diff line number Diff line change
1
+ {"Version" :" 15.1" , "MaximumDeploymentTarget" : " 15.1.99" }
Original file line number Diff line number Diff line change 8
8
9
9
// RUN: %clang -isysroot %S/Inputs/MacOSX15.0.sdk -target x86_64-apple-macos14.0 -### %s 2>&1 | FileCheck --check-prefix=CHECK_FUTURE %s
10
10
// RUN: %clang -isysroot %S/Inputs/MacOSX15.0.sdk -target x86_64-apple-macos15.0 -### %s 2>&1 | FileCheck --check-prefix=CHECK_FUTURE %s
11
+ // RUN: %clang -isysroot %S/Inputs/MacOSX15.0.sdk -target x86_64-apple-ios18.0-macabi -### %s 2>&1 | FileCheck --check-prefix=CHECK_FUTURE %s
12
+ // RUN: %clang -isysroot %S/Inputs/MacOSX15.1.sdk -target x86_64-apple-macos15.1 -darwin-target-variant x86_64-apple-ios18.1-macabi -### %s 2>&1 | FileCheck --check-prefix=CHECK_FUTURE %s
13
+ // RUN: %clang -isysroot %S/Inputs/MacOSX15.1.sdk -target x86_64-apple-ios18.1-macabi -darwin-target-variant x86_64-apple-macos15.1 -### %s 2>&1 | FileCheck --check-prefix=CHECK_FUTURE %s
11
14
// RUN: %clang -isysroot %S/Inputs/DriverKit23.0.sdk -target arm64-apple-driverkit23.0 -### %s 2>&1 | FileCheck --check-prefix=CHECK_FUTURE %s
12
15
// CHECK_FUTURE-NOT: -fbuiltin-headers-in-system-modules
You can’t perform that action at this time.
0 commit comments