We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-latomic
1 parent 63668b0 commit 2ff1719Copy full SHA for 2ff1719
stdlib/public/Concurrency/CMakeLists.txt
@@ -33,11 +33,10 @@ endif()
33
# Frustratingly, in many cases this isn't necessary because the
34
# sequence is inlined, but we have some code that's just subtle
35
# enough to turn into runtime calls.
36
-if(SWIFT_HOST_VARIANT STREQUAL "Linux")
37
- if(SWIFT_HOST_VARIANT_ARCH MATCHES "armv6|armv7|i686")
38
- list(APPEND swift_concurrency_link_libraries
39
- atomic)
40
- endif()
+if(SWIFT_HOST_VARIANT STREQUAL "linux" OR
+ SWIFT_HOST_VARIANT STREQUAL "android")
+ list(APPEND SWIFT_RUNTIME_CONCURRENCY_SWIFT_LINK_FLAGS
+ -latomic)
41
endif()
42
43
add_swift_target_library(swift_Concurrency ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
0 commit comments