Skip to content

Commit d3e28c1

Browse files
authored
Bring back weakly-linked fatalError to Mutex.cpp
1 parent d663923 commit d3e28c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stdlib/public/Concurrency/Mutex.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@
1818
#ifdef SWIFT_STDLIB_SINGLE_THREADED_RUNTIME
1919
#include "swift/Runtime/MutexSingleThreaded.h"
2020
#endif
21+
22+
__attribute__ ((weak))
23+
SWIFT_NORETURN void swift::fatalError(uint32_t flags, const char *format, ...) {
24+
abort();
25+
}

0 commit comments

Comments
 (0)