Skip to content

Commit 9273fe9

Browse files
committed
Bump to macOS 13 aligned versions
1 parent 3576c9e commit 9273fe9

File tree

10 files changed

+30
-25
lines changed

10 files changed

+30
-25
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,16 +552,16 @@ option(SWIFT_ALLOW_LINKING_SWIFT_CONTENT_IN_DARWIN_TOOLCHAIN
552552
This is needed to support Apple internal configurations."
553553
FALSE)
554554

555-
set(SWIFT_DARWIN_DEPLOYMENT_VERSION_OSX "11.0" CACHE STRING
555+
set(SWIFT_DARWIN_DEPLOYMENT_VERSION_OSX "13.0" CACHE STRING
556556
"Minimum deployment target version for OS X")
557557

558-
set(SWIFT_DARWIN_DEPLOYMENT_VERSION_IOS "14.0" CACHE STRING
558+
set(SWIFT_DARWIN_DEPLOYMENT_VERSION_IOS "16.0" CACHE STRING
559559
"Minimum deployment target version for iOS")
560560

561-
set(SWIFT_DARWIN_DEPLOYMENT_VERSION_TVOS "14.0" CACHE STRING
561+
set(SWIFT_DARWIN_DEPLOYMENT_VERSION_TVOS "16.0" CACHE STRING
562562
"Minimum deployment target version for tvOS")
563563

564-
set(SWIFT_DARWIN_DEPLOYMENT_VERSION_WATCHOS "7.0" CACHE STRING
564+
set(SWIFT_DARWIN_DEPLOYMENT_VERSION_WATCHOS "9.0" CACHE STRING
565565
"Minimum deployment target version for watchOS")
566566

567567
set(SWIFT_DARWIN_DEPLOYMENT_VERSION_XROS "1.0" CACHE STRING

benchmark/cmake/modules/AddSwiftBenchmarkSuite.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ macro(configure_sdks_darwin)
110110
set(appletvos_arch "arm64")
111111
set(watchos_arch "armv7k" "arm64_32")
112112

113-
set(macosx_ver "11.0")
114-
set(iphoneos_ver "14.0")
115-
set(appletvos_ver "14.0")
116-
set(watchos_ver "7.0")
113+
set(macosx_ver "13.0")
114+
set(iphoneos_ver "16.0")
115+
set(appletvos_ver "16.0")
116+
set(watchos_ver "9.0")
117117

118118
set(macosx_vendor "apple")
119119
set(iphoneos_vendor "apple")

cmake/modules/DarwinSDKs.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ set(SUPPORTED_XROS_SIMULATOR_ARCHS "arm64")
1111
if(SWIFT_DARWIN_DEPLOYMENT_VERSION_WATCHOS VERSION_GREATER_EQUAL 7.0)
1212
set(SUPPORTED_WATCHOS_SIMULATOR_ARCHS "x86_64;arm64")
1313
endif()
14+
if(SWIFT_DARWIN_DEPLOYMENT_VERSION_WATCHOS VERSION_GREATER_EQUAL 9.0)
15+
set(SUPPORTED_WATCHOS_ARCHS "arm64_32")
16+
endif()
1417

1518
is_sdk_requested(OSX swift_build_osx)
1619
if(swift_build_osx)

test/embedded/lit.local.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ config.substitutions = list(config.substitutions)
44
if config.target_sdk_name == 'macosx':
55
def do_fixup(key, value):
66
if isinstance(value, str):
7-
value = value.replace("-apple-macosx11.0", "-apple-macos14")
7+
value = value.replace("-apple-macosx13.0", "-apple-macos14")
88
elif isinstance(value, SubstituteCaptures):
9-
value.substitution = value.substitution.replace("-apple-macosx11.0", "-apple-macos14")
9+
value.substitution = value.substitution.replace("-apple-macosx13.0", "-apple-macos14")
1010
return (key, value)
1111

1212
config.substitutions = [do_fixup(a, b) for (a, b) in config.substitutions]

utils/build-presets.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ build-ninja
699699
# to LLVM_USE_RUNTIMES to build compiler-rt (#60993), so we can leverage
700700
# the value for SANITIZER_MIN_OSX_VERSION set in cmake_product.py
701701
extra-cmake-options=
702-
-DCLANG_COMPILER_RT_CMAKE_ARGS:STRING="-DSANITIZER_MIN_OSX_VERSION:STRING=11.0"
702+
-DCLANG_COMPILER_RT_CMAKE_ARGS:STRING="-DSANITIZER_MIN_OSX_VERSION:STRING=13.0"
703703

704704
# Do not build swift or cmark
705705
skip-build-swift

utils/build-script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def apply_default_arguments(toolchain, args):
424424
for target in targets
425425
if (not target.platform.is_darwin or
426426
target.platform.sdk_supports_architecture(
427-
target.arch, args.darwin_xcrun_toolchain))
427+
target.arch, args.darwin_xcrun_toolchain, args))
428428
]
429429

430430
# Include the Darwin module-only architectures in the CMake options.

utils/build-script-impl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ KNOWN_SETTINGS=(
101101

102102
## Darwin Options
103103
darwin-crash-reporter-client "" "whether to enable CrashReporter integration, default is 1 on Darwin platforms, 0 otherwise"
104-
darwin-deployment-version-ios "14.0" "minimum deployment target version for iOS"
105-
darwin-deployment-version-osx "11.0" "minimum deployment target version for OS X"
106-
darwin-deployment-version-tvos "14.0" "minimum deployment target version for tvOS"
107-
darwin-deployment-version-watchos "7.0" "minimum deployment target version for watchOS"
104+
darwin-deployment-version-ios "16.0" "minimum deployment target version for iOS"
105+
darwin-deployment-version-osx "13.0" "minimum deployment target version for OS X"
106+
darwin-deployment-version-tvos "16.0" "minimum deployment target version for tvOS"
107+
darwin-deployment-version-watchos "9.0" "minimum deployment target version for watchOS"
108108
darwin-deployment-version-xros "1.0" "minimum deployment target version for xrOS"
109109
darwin-install-extract-symbols "" "whether to extract symbols with dsymutil during installations"
110110
darwin-install-extract-symbols-use-just-built-dsymutil "1" "whether we should extract symbols using the just built dsymutil"

utils/build_swift/build_swift/defaults.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
SWIFT_ANALYZE_CODE_COVERAGE = 'false'
5353

5454
DARWIN_XCRUN_TOOLCHAIN = 'default'
55-
DARWIN_DEPLOYMENT_VERSION_OSX = '11.0'
56-
DARWIN_DEPLOYMENT_VERSION_IOS = '14.0'
57-
DARWIN_DEPLOYMENT_VERSION_TVOS = '14.0'
58-
DARWIN_DEPLOYMENT_VERSION_WATCHOS = '7.0'
55+
DARWIN_DEPLOYMENT_VERSION_OSX = '13.0'
56+
DARWIN_DEPLOYMENT_VERSION_IOS = '16.0'
57+
DARWIN_DEPLOYMENT_VERSION_TVOS = '16.0'
58+
DARWIN_DEPLOYMENT_VERSION_WATCHOS = '9.0'
5959
DARWIN_DEPLOYMENT_VERSION_XROS = '1.0'
6060

6161
UNIX_INSTALL_PREFIX = '/usr'

utils/gyb_foundation_support.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def ObjectiveCBridgeableImplementationForNSValue(Type):
1212
_getObjCTypeEncoding({Type}.self)) == 0,
1313
"NSValue does not contain the right type to bridge to {Type}")
1414
result = {Type}()
15-
if #available(OSX 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) {{
15+
if #available(OSX 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) {{
1616
source.getValue(&result!, size: MemoryLayout<{Type}>.size)
1717
}} else {{
1818
source.getValue(&result!)
@@ -27,7 +27,7 @@ def ObjectiveCBridgeableImplementationForNSValue(Type):
2727
return false
2828
}}
2929
result = {Type}()
30-
if #available(OSX 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) {{
30+
if #available(OSX 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) {{
3131
source.getValue(&result!, size: MemoryLayout<{Type}>.size)
3232
}} else {{
3333
source.getValue(&result!)
@@ -42,7 +42,7 @@ def ObjectiveCBridgeableImplementationForNSValue(Type):
4242
_getObjCTypeEncoding({Type}.self)) == 0,
4343
"NSValue does not contain the right type to bridge to {Type}")
4444
var result = {Type}()
45-
if #available(OSX 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) {{
45+
if #available(OSX 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) {{
4646
unwrappedSource.getValue(&result, size: MemoryLayout<{Type}>.size)
4747
}} else {{
4848
unwrappedSource.getValue(&result)

utils/swift_build_support/swift_build_support/targets.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
from . import cmake
1515
from . import shell
16+
from build_swift.build_swift.versions import Version
1617

1718
try:
1819
from build_swift.build_swift.wrappers import xcrun
@@ -113,7 +114,7 @@ def uses_host_tests(self):
113114
"""
114115
return self.is_embedded and not self.is_simulator
115116

116-
def sdk_supports_architecture(self, arch, toolchain):
117+
def sdk_supports_architecture(self, arch, toolchain, args):
117118
"""
118119
Convenience function for checking whether the SDK supports the
119120
target architecture.
@@ -122,7 +123,8 @@ def sdk_supports_architecture(self, arch, toolchain):
122123
# The names match up with the xcrun SDK names.
123124
xcrun_sdk_name = self.name
124125

125-
if (xcrun_sdk_name == 'watchos' and arch == 'armv7k'):
126+
if (xcrun_sdk_name == 'watchos' and arch == 'armv7k' and
127+
Version(args.darwin_deployment_version_watchos) < Version('9.0')):
126128
return True
127129

128130
sdk_path = xcrun.sdk_path(sdk=xcrun_sdk_name, toolchain=toolchain)

0 commit comments

Comments
 (0)