Skip to content

Commit 5c84475

Browse files
committed
explicitly enable MoveOnly feature when building _Concurrency lib
We ran into an issue on minimal stdlib build configurations, because they pull slightly older toolchains to build and test the stdlib. The noncopyable `Job` type was adopted immediately after such types were enabled by default, before the toolchain builds could catch up. Adding this flag to the build of the `_Concurrency` lib should make things more robust when somewhat older compilers are building this part of the stdlib. part of resolving rdar://106849189
1 parent 6f98e9a commit 5c84475

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/Concurrency/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ add_swift_target_library(swift_Concurrency ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} I
149149
${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
150150
-parse-stdlib
151151
-Xfrontend -enable-experimental-concurrency
152+
-enable-experimental-feature MoveOnly
152153
-diagnostic-style swift
153154
${SWIFT_RUNTIME_CONCURRENCY_SWIFT_FLAGS}
154155
${swift_concurrency_options}

0 commit comments

Comments
 (0)