Skip to content

Commit a654df7

Browse files
authored
Merge pull request #82578 from compnerd/isolation
Runtimes: avoid ODR violations in _Concurrency
2 parents 7ddf75c + 3ae4ffe commit a654df7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Runtimes/Core/Concurrency/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ add_library(swift_Concurrency
102102

103103
include(${SwiftCore_CONCURRENCY_GLOBAL_EXECUTOR}.cmake)
104104
target_compile_definitions(swift_Concurrency PRIVATE
105+
$<$<COMPILE_LANGUAGE:C,CXX>:-DSWIFT_RUNTIME>
105106
$<$<COMPILE_LANGUAGE:C,CXX>:-DSWIFT_TARGET_LIBRARY_NAME=swift_Concurrency>
106107
# NOTE: VS2017 <15.8 would round clamp alignment to alignof(max_align_t) which
107108
# was non-conformant. Indicate that we wish to use extended alignment.

0 commit comments

Comments
 (0)