File tree Expand file tree Collapse file tree 4 files changed +33
-8
lines changed
test/Concurrency/Backdeploy Expand file tree Collapse file tree 4 files changed +33
-8
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ set(swift_concurrency_options
49
49
DARWIN_INSTALL_NAME_DIR "@rpath" )
50
50
set (swift_concurrency_extra_sources
51
51
"../BackDeployConcurrency/Exclusivity.cpp"
52
- "../BackDeployConcurrency/Metadata.cpp" )
52
+ "../BackDeployConcurrency/Metadata.cpp"
53
+ "../stubs/SwiftNativeNSObject.mm" )
53
54
set (swift_concurrency_async_fp_mode "never" )
54
55
55
56
add_subdirectory (../Concurrency stdlib/public/BackDeployConcurrency )
Original file line number Diff line number Diff line change @@ -79,6 +79,13 @@ if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_REMOTE_MIRROR)
79
79
INSTALL_IN_COMPONENT never_install )
80
80
endif ()
81
81
82
+ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
83
+ list (APPEND SWIFT_RUNTIME_CONCURRENCY_SWIFT_LINK_FLAGS
84
+ "-Wl,-reexported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR} /Concurrency/ReexportedSymbols" )
85
+ endif ()
86
+
87
+ list (APPEND SWIFT_RUNTIME_CONCURRENCY_SWIFT_LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS} " )
88
+
82
89
if (SWIFT_BUILD_STDLIB )
83
90
# These must be kept in dependency order so that any referenced targets
84
91
# exist at the time we look for them in add_swift_*.
@@ -117,10 +124,3 @@ if(SWIFT_BUILD_SDK_OVERLAY)
117
124
add_subdirectory (Windows )
118
125
endif ()
119
126
endif ()
120
-
121
- if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
122
- list (APPEND SWIFT_RUNTIME_CONCURRENCY_SWIFT_LINK_FLAGS
123
- "-Wl,-reexported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR} /Concurrency/ReexportedSymbols" )
124
- endif ()
125
-
126
- list (APPEND SWIFT_RUNTIME_CONCURRENCY_SWIFT_LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS} " )
Original file line number Diff line number Diff line change 15
15
// REQUIRES: CPU=x86_64
16
16
// REQUIRES: OS=macosx
17
17
// REQUIRES: executable_test
18
+ // REQUIRES: concurrency_runtime
18
19
actor MyActor { }
19
20
20
21
protocol MyProtocol {
Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %target-build-swift -target x86_64-apple-macosx10.15 %s -o %t/test_mangling -Xfrontend -disable-availability-checking -parse-as-library
3
+ // RUN: %target-run %t/test_mangling
4
+
5
+ // REQUIRES: CPU=x86_64
6
+ // REQUIRES: OS=macosx
7
+ // REQUIRES: executable_test
8
+ // REQUIRES: concurrency_runtime
9
+
10
+ import Foundation
11
+
12
+ @objc actor MyActor {
13
+ func f( ) -> String { " hello " }
14
+ }
15
+
16
+ @main
17
+ enum Main {
18
+ static func main( ) async {
19
+ let ma = MyActor ( )
20
+ let greeting = await ma. f ( )
21
+ assert ( greeting == " hello " )
22
+ }
23
+ }
You can’t perform that action at this time.
0 commit comments