We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 175ae9a commit 0836f08Copy full SHA for 0836f08
libc/src/stdlib/CMakeLists.txt
@@ -631,6 +631,7 @@ add_entrypoint_object(
631
HDRS
632
exit.h
633
DEPENDS
634
+ libc.src.__support.threads.thread
635
${exit_deps}
636
)
637
libc/src/stdlib/exit.cpp
@@ -14,12 +14,11 @@
14
namespace LIBC_NAMESPACE_DECL {
15
16
extern "C" void __cxa_finalize(void *);
17
-extern "C" [[gnu::weak]] void __cxa_thread_finalize();
+extern "C" void __cxa_thread_finalize();
18
19
// TODO: use recursive mutex to protect this routine.
20
[[noreturn]] LLVM_LIBC_FUNCTION(void, exit, (int status)) {
21
- if (__cxa_thread_finalize)
22
- __cxa_thread_finalize();
+ __cxa_thread_finalize();
23
__cxa_finalize(nullptr);
24
internal::exit(status);
25
}
0 commit comments