Index: src/cxa_thread_atexit.cpp =================================================================== --- src/cxa_thread_atexit.cpp +++ src/cxa_thread_atexit.cpp @@ -68,7 +68,7 @@ // Used to trigger destructors on thread exit; value is ignored std::__libcpp_tls_key dtors_key; - void run_dtors(void*) { + void _LIBCPP_TLS_DESTRUCTOR_CC run_dtors(void*) { while (auto head = dtors) { dtors = head->next; head->dtor(head->obj);