Skip to content

Commit 235d92f

Browse files
Include mutex header for single thread mode
1 parent 16ffa1d commit 235d92f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

stdlib/public/Concurrency/Mutex.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
#include "../runtime/MutexPThread.cpp"
1717
#include "../runtime/MutexWin32.cpp"
1818

19+
#ifdef SWIFT_STDLIB_SINGLE_THREADED_RUNTIME
20+
#include "swift/Runtime/MutexSingleThreaded.h"
21+
#endif
22+
1923
SWIFT_NORETURN void swift::fatalError(uint32_t flags, const char *format, ...) {
2024
abort();
21-
}
25+
}

0 commit comments

Comments
 (0)