ld.cpp:1702:16: error: exception specification in declaration does not match previous declaration
extern "C" int __cxa_atexit(void (*func) (void *), void * arg, void * dso_handle) CXA_ATEXIT_THROW;
^
/usr/bin/../include/c++/v1/cxxabi.h:140:32: note: previous declaration is here
extern _LIBCXXABI_FUNC_VIS int __cxa_atexit(void (*f)(void *), void *p,
^
18 warnings and 1 error generated.
Latest llvm has been removed __cxa_atexit prototype from cxxabi.h so that this code works, but not for older llvm. Besides, Apple did not add throw() to the redefinition in the original code of ld.cpp
Possible patch is define CXA_ATEXIT_THROW as nothing when __APPLE__
Latest llvm has been removed
__cxa_atexit
prototype from cxxabi.h so that this code works, but not for older llvm. Besides, Apple did not addthrow()
to the redefinition in the original code of ld.cppPossible patch is define
CXA_ATEXIT_THROW
as nothing when__APPLE__