File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
stdlib/toolchain/CompatibilitySpan Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,13 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND DEFINED SWIFT_STDLIB_LIBRARY_BUILD_TY
22
33 set (library_name "swiftCompatibilitySpan" )
44
5+ # The correct fix would be to add this to the following to the invocation of add_swift_target_library
6+ # DEPLOYMENT_VERSION_MACCATALYST ${COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_MACCATALYST}
7+ # but the underlying logic takes the deployment version from the cache instead
8+ # so for now we override those values locally
9+ set (SWIFT_DARWIN_DEPLOYMENT_VERSION_OSX ${COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_OSX} )
10+ set (SWIFT_DARWIN_DEPLOYMENT_VERSION_MACCATALYST ${COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_MACCATALYST} )
11+
512 add_swift_target_library("${library_name} " ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
613 FakeStdlib.swift
714 ../../public /core/Span/MutableRawSpan.swift
@@ -13,8 +20,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND DEFINED SWIFT_STDLIB_LIBRARY_BUILD_TY
1320
1421 TARGET_SDKS ${SWIFT_APPLE_PLATFORMS}
1522
16- LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS} "
17-
1823 SWIFT_COMPILE_FLAGS
1924 ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
2025 -parse-stdlib
You can’t perform that action at this time.
0 commit comments