Skip to content

Commit 0b70235

Browse files
[test] disable unittests/runtime/Mutex.cpp for single-thread runtime
1 parent d64f83a commit 0b70235

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

unittests/runtime/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ 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+
8791
if(SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED)
8892
# list(APPEND PLATFORM_SOURCES
8993
# DistributedActor.cpp
@@ -98,15 +102,15 @@ if(("${SWIFT_HOST_VARIANT_SDK}" STREQUAL "${SWIFT_PRIMARY_VARIANT_SDK}") AND
98102
weak.mm
99103
Refcounting.mm
100104
Actor.cpp
101-
TaskStatus.cpp)
105+
TaskStatus.cpp
106+
Mutex.cpp)
102107

103108
add_swift_unittest(SwiftRuntimeTests
104109
Array.cpp
105110
CompatibilityOverrideRuntime.cpp
106111
CompatibilityOverrideConcurrency.cpp
107112
Concurrent.cpp
108113
Metadata.cpp
109-
Mutex.cpp
110114
Enum.cpp
111115
Refcounting.cpp
112116
Stdlib.cpp

0 commit comments

Comments
 (0)