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 2e8e435 commit 8bdaa12Copy full SHA for 8bdaa12
libc/src/stdlib/exit.cpp
@@ -24,8 +24,12 @@ extern "C" [[gnu::weak]] void __cxa_thread_finalize();
24
25
// TODO: use recursive mutex to protect this routine.
26
[[noreturn]] LLVM_LIBC_FUNCTION(void, exit, (int status)) {
27
+// FIXME: The NVPTX target does not support external weak symbols correctly
28
+// despite being an ELF platform. Disable pending a future split.
29
+#if !defined(LIBC_TARGET_ARCH_IS_NVPTX)
30
if (__cxa_thread_finalize)
31
__cxa_thread_finalize();
32
+#endif
33
__cxa_finalize(nullptr);
34
internal::exit(status);
35
}
0 commit comments