Skip to content

Commit be3f1a9

Browse files
Define duplicated fatalError as weak symbol to avoid conflict while linking
1 parent 662d7bd commit be3f1a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/Concurrency/Mutex.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "swift/Runtime/MutexSingleThreaded.h"
2121
#endif
2222

23+
__attribute__ ((weak))
2324
SWIFT_NORETURN void swift::fatalError(uint32_t flags, const char *format, ...) {
2425
abort();
2526
}

0 commit comments

Comments
 (0)