Skip to content

Commit d663923

Browse files
kateinoigakukunMaxDesiatov
authored andcommitted
[test] disable unittests/runtime/Mutex.cpp for single-thread runtime
# Conflicts: # unittests/runtime/CMakeLists.txt
1 parent 8d08301 commit d663923

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

unittests/runtime/CMakeLists.txt

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,33 @@ if(("${SWIFT_HOST_VARIANT_SDK}" STREQUAL "${SWIFT_PRIMARY_VARIANT_SDK}") AND
8484
endif()
8585
endif()
8686

87+
if(NOT SWIFT_STDLIB_SINGLE_THREADED_RUNTIME)
88+
list(APPEND PLATFORM_SOURCES Mutex.cpp)
89+
endif()
90+
91+
if(SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED)
92+
# list(APPEND PLATFORM_SOURCES
93+
# DistributedActor.cpp
94+
# )
95+
list(APPEND PLATFORM_TARGET_LINK_LIBRARIES
96+
swift_Distributed${SWIFT_PRIMARY_VARIANT_SUFFIX}
97+
)
98+
endif()
99+
87100
# Don't complain about these files not being in the sources list.
88101
set(LLVM_OPTIONAL_SOURCES
89102
weak.mm
90103
Refcounting.mm
91104
Actor.cpp
92-
TaskStatus.cpp)
105+
TaskStatus.cpp
106+
Mutex.cpp)
93107

94108
add_swift_unittest(SwiftRuntimeTests
95109
Array.cpp
96110
CompatibilityOverrideRuntime.cpp
97111
CompatibilityOverrideConcurrency.cpp
98112
Concurrent.cpp
99113
Metadata.cpp
100-
Mutex.cpp
101114
Enum.cpp
102115
Refcounting.cpp
103116
Stdlib.cpp

0 commit comments

Comments
 (0)