Skip to content

Commit 8a30f3a

Browse files
committed
Runtimes: adjust the linking to _Concurrency
`_Concurrency` is being implicitly imported and then linked into the runtime. Disable the implicit import of the concurrency runtime to allow proper control over the linkage for the library.
1 parent 1aaae85 commit 8a30f3a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Runtimes/Supplemental/StringProcessing/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ include(AvailabilityMacros)
2727
add_compile_options(
2828
$<$<COMPILE_LANGUAGE:Swift>:-explicit-module-build>
2929
$<$<COMPILE_LANGUAGE:Swift>:-nostdlibimport>
30+
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-implicit-concurrency-module-import>"
3031
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-implicit-string-processing-module-import>")
3132

3233
add_subdirectory(_RegexParser)

Runtimes/Supplemental/StringProcessing/_RegexParser/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ add_library(swift_RegexParser
3131
Utility/Errors.swift
3232
Utility/MissingUnicode.swift)
3333

34-
target_link_libraries(swift_RegexParser PRIVATE swiftCore)
34+
target_link_libraries(swift_RegexParser PRIVATE
35+
swiftCore)
3536

3637
set_target_properties(swift_RegexParser PROPERTIES
3738
Swift_MODULE_NAME _RegexParser)

0 commit comments

Comments
 (0)