@@ -57,22 +57,22 @@ File object that represents a directory containing the Swift dylibs to package f
5757 },
5858)
5959
60- # Minimum OS versions for which we no longer need to potentially bundle any
61- # Swift dylibs with the application. The first cutoff point was when the
62- # platforms bundled the standard libraries, the second was when they started
63- # bundling the Concurrency library. There may be future libraries that require
64- # us to continue bumping these values. The tool is smart enough only to bundle
65- # those libraries required by the minimum OS version of the scanned binaries.
60+ # For each platform, the minimum OS version at which we no longer need to bundle
61+ # any Swift dylibs with the application -- either the pre-ABI-stable runtime or
62+ # back-deployed runtimes (e.g., Concurrency and Span). We do not need to
63+ # consider each of these cases individually; `swift-stdlib-tool` will only
64+ # bundle the libraries required based on the minimum OS version of the scanned
65+ # binaries.
6666#
67- # Values are the first version where bundling is no longer required and should
68- # correspond with the Swift compilers values for these which is the source of
69- # truth https://github.com/apple/swift/blob/998d3518938bd7229e7c5e7b66088d0501c02051 /lib/Basic/Platform.cpp#L82-L105
67+ # These values should be kept in sync with the values in
68+ # `swift::tripleRequiresRPathForSwiftLibrariesInOS` defined in:
69+ # https://github.com/apple/swift/blob/main /lib/Basic/Platform.cpp.
7070_MIN_OS_PLATFORM_SWIFT_PRESENCE = {
71- "ios" : apple_common .dotted_version ("15 .0" ),
72- "macos" : apple_common .dotted_version ("12 .0" ),
73- "tvos" : apple_common .dotted_version ("15 .0" ),
74- "visionos" : apple_common .dotted_version ("1 .0" ),
75- "watchos" : apple_common .dotted_version ("8 .0" ),
71+ "ios" : apple_common .dotted_version ("26 .0" ),
72+ "macos" : apple_common .dotted_version ("26 .0" ),
73+ "tvos" : apple_common .dotted_version ("26 .0" ),
74+ "visionos" : apple_common .dotted_version ("26 .0" ),
75+ "watchos" : apple_common .dotted_version ("26 .0" ),
7676}
7777
7878def _swift_dylib_action (
0 commit comments