Skip to content

Commit b6f6713

Browse files
authored
Merge pull request #39051 from DougGregor/concurrency-back-deploy-libraries
Add an option to build the concurrency library for back deployment.
2 parents f96057e + ebd7b49 commit b6f6713

File tree

21 files changed

+335
-33
lines changed

21 files changed

+335
-33
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,11 @@ else()
10571057
add_subdirectory(stdlib/toolchain)
10581058
endif()
10591059

1060+
if (BUILD_SWIFT_CONCURRENCY_BACK_DEPLOYMENT_LIBRARIES)
1061+
# Build the back-deployed concurrency library.
1062+
add_subdirectory(stdlib/public/BackDeployConcurrency)
1063+
endif()
1064+
10601065
# Some tools (e.g. swift-reflection-dump) rely on a host swiftReflection, so
10611066
# ensure we build that when building tools.
10621067
if(SWIFT_INCLUDE_TOOLS)

cmake/modules/SwiftComponents.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
# The set of "defined" swift components are as follows:
4747
#
4848
# * autolink-driver -- the Swift driver support tools
49+
# * back-deployment -- Swift back-deployment libraries
4950
# * compiler -- the Swift compiler and (on supported platforms) the REPL.
5051
# * clang-builtin-headers -- install a copy of Clang builtin headers under
5152
# 'lib/swift/clang'. This is useful when Swift compiler is installed in
@@ -66,7 +67,7 @@
6667
# * toolchain-dev-tools -- install development tools useful in a shared toolchain
6768
# * dev -- headers and libraries required to use Swift compiler as a library.
6869
set(_SWIFT_DEFINED_COMPONENTS
69-
"autolink-driver;compiler;clang-builtin-headers;clang-resource-dir-symlink;clang-builtin-headers-in-clang-resource-dir;stdlib;stdlib-experimental;sdk-overlay;parser-lib;editor-integration;tools;testsuite-tools;toolchain-tools;toolchain-dev-tools;dev;license;sourcekit-xpc-service;sourcekit-inproc;swift-remote-mirror;swift-remote-mirror-headers")
70+
"autolink-driver;back-deployment;compiler;clang-builtin-headers;clang-resource-dir-symlink;clang-builtin-headers-in-clang-resource-dir;stdlib;stdlib-experimental;sdk-overlay;parser-lib;editor-integration;tools;testsuite-tools;toolchain-tools;toolchain-dev-tools;dev;license;sourcekit-xpc-service;sourcekit-inproc;swift-remote-mirror;swift-remote-mirror-headers")
7071

7172
# The default install components include all of the defined components, except
7273
# for the following exceptions.
@@ -85,6 +86,8 @@ else()
8586
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "sourcekit-xpc-service")
8687
endif()
8788
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "stdlib-experimental")
89+
# back-deployment libraries are opt-in
90+
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "back-deployment")
8891

8992
macro(swift_configure_components)
9093
# Set the SWIFT_INSTALL_COMPONENTS variable to the default value if it is not passed in via -D

include/swift/Basic/LangOptions.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ namespace swift {
302302
bool EnableExperimentalConcurrency = false;
303303

304304
/// Enable experimental back-deployment of the concurrency model.
305-
bool EnableExperimentalBackDeployConcurrency = false;
305+
bool EnableExperimentalBackDeployConcurrency =
306+
SWIFT_ALLOW_BACK_DEPLOY_CONCURRENCY;
306307

307308
/// Enable experimental support for named opaque result types, e.g.
308309
/// `func f() -> <T> T`.

include/swift/Config.h.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@
1414

1515
#cmakedefine01 SWIFT_ENABLE_GLOBAL_ISEL_ARM64
1616

17+
#cmakedefine01 SWIFT_ALLOW_BACK_DEPLOY_CONCURRENCY
18+
1719
#endif // SWIFT_CONFIG_H

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 45 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@ function(_add_swift_target_library_single target name)
640640
SDK
641641
DEPLOYMENT_VERSION_MACCATALYST
642642
MACCATALYST_BUILD_FLAVOR
643+
BACK_DEPLOYMENT_LIBRARY
643644
ENABLE_LTO)
644645
set(SWIFTLIB_SINGLE_multiple_parameter_options
645646
C_COMPILE_FLAGS
@@ -771,6 +772,13 @@ function(_add_swift_target_library_single target name)
771772
-libc;${SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY})
772773
endif()
773774

775+
# Don't install the Swift module content for back-deployment libraries.
776+
if (SWIFTLIB_SINGLE_BACK_DEPLOYMENT_LIBRARY)
777+
set(install_in_component "never_install")
778+
else()
779+
set(install_in_component "${SWIFTLIB_SINGLE_INSTALL_IN_COMPONENT}")
780+
endif()
781+
774782
# FIXME: don't actually depend on the libraries in SWIFTLIB_SINGLE_LINK_LIBRARIES,
775783
# just any swiftmodule files that are associated with them.
776784
handle_swift_sources(
@@ -796,7 +804,7 @@ function(_add_swift_target_library_single target name)
796804
${embed_bitcode_arg}
797805
${SWIFTLIB_SINGLE_STATIC_keyword}
798806
ENABLE_LTO "${SWIFTLIB_SINGLE_ENABLE_LTO}"
799-
INSTALL_IN_COMPONENT "${SWIFTLIB_SINGLE_INSTALL_IN_COMPONENT}"
807+
INSTALL_IN_COMPONENT "${install_in_component}"
800808
MACCATALYST_BUILD_FLAVOR "${SWIFTLIB_SINGLE_MACCATALYST_BUILD_FLAVOR}")
801809
add_swift_source_group("${SWIFTLIB_SINGLE_EXTERNAL_SOURCES}")
802810

@@ -941,21 +949,28 @@ function(_add_swift_target_library_single target name)
941949
SUFFIX ${LLVM_PLUGIN_EXT})
942950
endif()
943951

952+
# For back-deployed libraries, install into lib/swift-<version>.
953+
if (SWIFTLIB_SINGLE_BACK_DEPLOYMENT_LIBRARY)
954+
set(swiftlib_prefix "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib/swift-${SWIFTLIB_SINGLE_BACK_DEPLOYMENT_LIBRARY}")
955+
else()
956+
set(swiftlib_prefix ${SWIFTLIB_DIR})
957+
endif()
958+
944959
# Install runtime libraries to lib/swift instead of lib. This works around
945960
# the fact that -isysroot prevents linking to libraries in the system
946961
# /usr/lib if Swift is installed in /usr.
947962
set_target_properties("${target}" PROPERTIES
948-
LIBRARY_OUTPUT_DIRECTORY ${SWIFTLIB_DIR}/${SWIFTLIB_SINGLE_SUBDIR}
949-
ARCHIVE_OUTPUT_DIRECTORY ${SWIFTLIB_DIR}/${SWIFTLIB_SINGLE_SUBDIR})
963+
LIBRARY_OUTPUT_DIRECTORY ${swiftlib_prefix}/${SWIFTLIB_SINGLE_SUBDIR}
964+
ARCHIVE_OUTPUT_DIRECTORY ${swiftlib_prefix}/${SWIFTLIB_SINGLE_SUBDIR})
950965
if(SWIFTLIB_SINGLE_SDK STREQUAL WINDOWS AND SWIFTLIB_SINGLE_IS_STDLIB_CORE
951966
AND libkind STREQUAL SHARED)
952967
add_custom_command(TARGET ${target} POST_BUILD
953-
COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:${target}> ${SWIFTLIB_DIR}/${SWIFTLIB_SINGLE_SUBDIR})
968+
COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:${target}> ${swiftlib_prefix}/${SWIFTLIB_SINGLE_SUBDIR})
954969
endif()
955970

956971
foreach(config ${CMAKE_CONFIGURATION_TYPES})
957972
string(TOUPPER ${config} config_upper)
958-
escape_path_for_xcode("${config}" "${SWIFTLIB_DIR}" config_lib_dir)
973+
escape_path_for_xcode("${config}" "${swiftlib_prefix}" config_lib_dir)
959974
set_target_properties(${target} PROPERTIES
960975
LIBRARY_OUTPUT_DIRECTORY_${config_upper} ${config_lib_dir}/${SWIFTLIB_SINGLE_SUBDIR}
961976
ARCHIVE_OUTPUT_DIRECTORY_${config_upper} ${config_lib_dir}/${SWIFTLIB_SINGLE_SUBDIR})
@@ -1390,6 +1405,7 @@ endfunction()
13901405
# DEPLOYMENT_VERSION_TVOS version
13911406
# DEPLOYMENT_VERSION_WATCHOS version
13921407
# MACCATALYST_BUILD_FLAVOR flavor
1408+
# BACK_DEPLOYMENT_LIBRARY version
13931409
# source1 [source2 source3 ...])
13941410
#
13951411
# name
@@ -1485,6 +1501,9 @@ endfunction()
14851501
# IS_SDK_OVERLAY
14861502
# Treat the library as a part of the Swift SDK overlay.
14871503
#
1504+
# BACK_DEPLOYMENT_LIBRARY
1505+
# Treat this as a back-deployment library to the given Swift version
1506+
#
14881507
# INSTALL_IN_COMPONENT comp
14891508
# The Swift installation component that this library belongs to.
14901509
#
@@ -1533,7 +1552,8 @@ function(add_swift_target_library name)
15331552
INSTALL_IN_COMPONENT
15341553
DARWIN_INSTALL_NAME_DIR
15351554
DEPLOYMENT_VERSION_MACCATALYST
1536-
MACCATALYST_BUILD_FLAVOR)
1555+
MACCATALYST_BUILD_FLAVOR
1556+
BACK_DEPLOYMENT_LIBRARY)
15371557
set(SWIFTLIB_multiple_parameter_options
15381558
C_COMPILE_FLAGS
15391559
DEPENDS
@@ -1970,6 +1990,12 @@ function(add_swift_target_library name)
19701990
list(APPEND swiftlib_link_flags_all "-Wl,-soname,lib${name}.so")
19711991
endif()
19721992

1993+
if (SWIFTLIB_BACK_DEPLOYMENT_LIBRARY)
1994+
set(back_deployment_library_option BACK_DEPLOYMENT_LIBRARY ${SWIFTLIB_BACK_DEPLOYMENT_LIBRARY})
1995+
else()
1996+
set(back_deployment_library_option)
1997+
endif()
1998+
19731999
# Add this library variant.
19742000
_add_swift_target_library_single(
19752001
${variant_name}
@@ -2006,6 +2032,7 @@ function(add_swift_target_library name)
20062032
DEPLOYMENT_VERSION_TVOS "${SWIFTLIB_DEPLOYMENT_VERSION_TVOS}"
20072033
DEPLOYMENT_VERSION_WATCHOS "${SWIFTLIB_DEPLOYMENT_VERSION_WATCHOS}"
20082034
MACCATALYST_BUILD_FLAVOR "${maccatalyst_build_flavor}"
2035+
${back_deployment_library_option}
20092036
ENABLE_LTO "${SWIFT_STDLIB_ENABLE_LTO}"
20102037
GYB_SOURCES ${SWIFTLIB_GYB_SOURCES}
20112038
)
@@ -2106,6 +2133,9 @@ function(add_swift_target_library name)
21062133
if("${sdk}" STREQUAL "WINDOWS")
21072134
set(UNIVERSAL_LIBRARY_NAME
21082135
"${SWIFTLIB_DIR}/${library_subdir}/${name}.dll")
2136+
elseif(SWIFTLIB_BACK_DEPLOYMENT_LIBRARY)
2137+
set(UNIVERSAL_LIBRARY_NAME
2138+
"${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib/swift-${SWIFTLIB_BACK_DEPLOYMENT_LIBRARY}/${library_subdir}/${CMAKE_SHARED_LIBRARY_PREFIX}${name}${CMAKE_SHARED_LIBRARY_SUFFIX}")
21092139
else()
21102140
set(UNIVERSAL_LIBRARY_NAME
21112141
"${SWIFTLIB_DIR}/${library_subdir}/${CMAKE_SHARED_LIBRARY_PREFIX}${name}${CMAKE_SHARED_LIBRARY_SUFFIX}")
@@ -2185,8 +2215,16 @@ function(add_swift_target_library name)
21852215
# NOTE: ${UNIVERSAL_LIBRARY_NAME} is the output associated with the target
21862216
# ${lipo_target}
21872217
add_dependencies(${SWIFTLIB_INSTALL_IN_COMPONENT} ${lipo_target})
2218+
2219+
if (SWIFTLIB_BACK_DEPLOYMENT_LIBRARY)
2220+
# Back-deployment libraries get installed into a versioned directory.
2221+
set(install_dest "lib${LLVM_LIBDIR_SUFFIX}/${resource_dir}-${SWIFTLIB_BACK_DEPLOYMENT_LIBRARY}/${resource_dir_sdk_subdir}")
2222+
else()
2223+
set(install_dest "lib${LLVM_LIBDIR_SUFFIX}/${resource_dir}/${resource_dir_sdk_subdir}")
2224+
endif()
2225+
21882226
swift_install_in_component(FILES "${UNIVERSAL_LIBRARY_NAME}"
2189-
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}/${resource_dir}/${resource_dir_sdk_subdir}"
2227+
DESTINATION ${install_dest}
21902228
COMPONENT "${SWIFTLIB_INSTALL_IN_COMPONENT}"
21912229
PERMISSIONS ${file_permissions}
21922230
"${optional_arg}")

stdlib/private/StdlibUnittest/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ if (SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED)
2020
list(APPEND swift_stdlib_unittest_link_libraries "swift_Distributed")
2121
endif()
2222

23+
if (SWIFT_ALLOW_BACK_DEPLOY_CONCURRENCY)
24+
set(swift_concurrency_availability "macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0")
25+
else()
26+
set(swift_concurrency_availability "macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0")
27+
endif()
28+
2329
add_swift_target_library(swiftStdlibUnittest ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
2430
# This file should be listed the first. Module name is inferred from the
2531
# filename.
@@ -55,7 +61,7 @@ add_swift_target_library(swiftStdlibUnittest ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES}
5561
SWIFT_MODULE_DEPENDS_WINDOWS CRT WinSDK
5662
SWIFT_COMPILE_FLAGS ${swift_stdlib_unittest_compile_flags} ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
5763
-Xfrontend -define-availability
58-
-Xfrontend \"SwiftStdlib 5.5:macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0\"
64+
-Xfrontend "SwiftStdlib 5.5:${swift_concurrency_availability}"
5965
INSTALL_IN_COMPONENT stdlib-experimental
6066
DARWIN_INSTALL_NAME_DIR "${SWIFT_DARWIN_STDLIB_PRIVATE_INSTALL_NAME_DIR}"
6167
LINK_LIBRARIES ${swift_stdlib_unittest_link_libraries})
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#===--- CMakeLists.txt - Back-deployed concurrency support library -------===#
2+
#
3+
# This source file is part of the Swift.org open source project
4+
#
5+
# Copyright (c) 2021 Apple Inc. and the Swift project authors
6+
# Licensed under Apache License v2.0 with Runtime Library Exception
7+
#
8+
# See https://swift.org/LICENSE.txt for license information
9+
# See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
#
11+
#===----------------------------------------------------------------------===#
12+
13+
# This is always build standalone
14+
include("${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake/modules/StandaloneOverlay.cmake")
15+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/modules")
16+
include(AddSwiftStdlib)
17+
18+
# Don't build the libraries for 32-bit iOS targets; there is no back-deployment
19+
# to them.
20+
list(REMOVE_ITEM SWIFT_SDK_IOS_ARCHITECTURES "armv7" "armv7s")
21+
list(REMOVE_ITEM SWIFT_SDK_IOS_SIMULATOR_ARCHITECTURES "i386")
22+
23+
# The back-deployed library can only be shared.
24+
list(APPEND SWIFT_STDLIB_LIBRARY_BUILD_TYPES SHARED)
25+
26+
# Link aginst the libswiftCore in the SDK. This intentionally avoids using
27+
# the locally-built libswiftCore.
28+
foreach(sdk ${SWIFT_SDKS})
29+
set(sdk_name ${SWIFT_SDK_${sdk}_LIB_SUBDIR})
30+
set(swift_core_target "swiftCore-${sdk_name}")
31+
add_library(${swift_core_target} SHARED IMPORTED GLOBAL)
32+
set_property(TARGET ${swift_core_target}
33+
PROPERTY IMPORTED_LOCATION "${SWIFT_SDK_${sdk}_PUBLIC_PATH}/usr/lib/swift/libswiftCore.tbd")
34+
foreach(arch in ${SWIFT_SDK_${sdk}_ARCHITECTURES})
35+
add_library("${swift_core_target}-${arch}" ALIAS "${swift_core_target}")
36+
endforeach()
37+
endforeach()
38+
39+
# Build the concurrency library for back deployment.
40+
add_compile_definitions(SWIFT_CONCURRENCY_BACK_DEPLOYMENT)
41+
set(swift_concurrency_install_component back-deployment)
42+
set(swift_concurrency_options BACK_DEPLOYMENT_LIBRARY 5.5)
43+
44+
add_subdirectory(../Concurrency stdlib/public/BackDeployConcurrency)

stdlib/public/Concurrency/CMakeLists.txt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,15 @@
1313
set(LLVM_OPTIONAL_SOURCES
1414
${swift_concurrency_objc_sources})
1515

16-
set(swift_concurrency_link_libraries
17-
swiftCore)
16+
if (SWIFT_ALLOW_BACK_DEPLOY_CONCURRENCY OR BUILD_SWIFT_CONCURRENCY_BACK_DEPLOYMENT_LIBRARIES)
17+
set(swift_concurrency_availability "macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0")
18+
else()
19+
set(swift_concurrency_availability "macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0")
20+
endif()
21+
22+
if(NOT swift_concurrency_install_component)
23+
set(swift_concurrency_install_component stdlib)
24+
endif()
1825

1926
if(SWIFT_CONCURRENCY_USES_DISPATCH)
2027
if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
@@ -95,7 +102,8 @@ add_swift_target_library(swift_Concurrency ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} I
95102
-parse-stdlib
96103
-Xfrontend -enable-experimental-concurrency
97104
-Xfrontend -define-availability
98-
-Xfrontend \"SwiftStdlib 5.5:macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0\"
105+
-Xfrontend "SwiftStdlib 5.5:${swift_concurrency_availability}"
99106
LINK_FLAGS "${SWIFT_RUNTIME_CONCURRENCY_SWIFT_LINK_FLAGS}"
100-
INSTALL_IN_COMPONENT stdlib
107+
${swift_concurrency_options}
108+
INSTALL_IN_COMPONENT ${swift_concurrency_install_component}
101109
)

stdlib/public/Distributed/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
set(swift_distributed_link_libraries
1414
swiftCore)
1515

16+
17+
if (SWIFT_ALLOW_BACK_DEPLOY_CONCURRENCY)
18+
set(swift_concurrency_availability "macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0")
19+
else()
20+
set(swift_concurrency_availability "macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0")
21+
endif()
22+
1623
add_swift_target_library(swift_Distributed ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
1724
AssertDistributed.swift
1825
ActorTransport.swift
@@ -34,7 +41,7 @@ add_swift_target_library(swift_Distributed ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} I
3441
-parse-stdlib
3542
-Xfrontend -enable-experimental-distributed
3643
-Xfrontend -define-availability
37-
-Xfrontend \"SwiftStdlib 5.5:macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0\"
44+
-Xfrontend "SwiftStdlib 5.5:${swift_concurrency_availability}"
3845
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}"
3946

4047
SWIFT_MODULE_DEPENDS _Concurrency

test/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ normalize_boolean_spelling(SWIFT_BUILD_SYNTAXPARSERLIB)
181181
normalize_boolean_spelling(SWIFT_ENABLE_SOURCEKIT_TESTS)
182182
normalize_boolean_spelling(SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING)
183183
normalize_boolean_spelling(SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY)
184+
normalize_boolean_spelling(SWIFT_ALLOW_BACK_DEPLOY_CONCURRENCY)
184185
normalize_boolean_spelling(SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED)
185186
is_build_type_optimized("${SWIFT_STDLIB_BUILD_TYPE}" SWIFT_OPTIMIZED)
186187

@@ -358,6 +359,10 @@ foreach(SDK ${SWIFT_SDKS})
358359
list(APPEND LIT_ARGS "--param" "concurrency")
359360
endif()
360361

362+
if(SWIFT_ALLOW_BACK_DEPLOY_CONCURRENCY)
363+
list(APPEND LIT_ARGS "--param" "back_deploy_concurrency")
364+
endif()
365+
361366
if(SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED)
362367
list(APPEND LIT_ARGS "--param" "distributed")
363368
endif()

test/Concurrency/concurrency_availability.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -parse-stdlib -target x86_64-apple-macosx10.15 -typecheck -verify %s
1+
// RUN: %target-swift-frontend -parse-stdlib -target x86_64-apple-macosx10.14 -typecheck -verify %s
22
// RUN: %target-swift-frontend -parse-stdlib -target x86_64-apple-macosx12 -typecheck %s
33
// REQUIRES: OS=macosx
44

test/IRGen/async/weak_availability.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -enable-implicit-dynamic -target %target-cpu-apple-macosx11 -Onone -emit-ir %s | %FileCheck --check-prefix=MAYBE-AVAILABLE %s
1+
// RUN: %target-swift-frontend -enable-implicit-dynamic -target %target-cpu-apple-macosx10.14 -Onone -emit-ir %s | %FileCheck --check-prefix=MAYBE-AVAILABLE %s
22
// REQUIRES: OS=macosx && CPU=x86_64
33

44
@available(macOS 12.0, *)

0 commit comments

Comments
 (0)