mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-09 22:24:37 +00:00
Adding a new option to CMake to disable C++ atexit on llvm-shlib.
Summary: This is desirable for WebKit and other clients of the llvm-shlib because C++ exit time destructors have a tendency to crash when invoked from multi-threaded applications. Ideally this option will be temporary, because the ideal fix is to just not have exit time destructors. Reviewers: chapuni, ributzka Reviewed By: ributzka Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6572 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223805 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -11,3 +11,10 @@
|
||||
// you can't define a target with no sources.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Config/config.h"
|
||||
|
||||
#if defined(DISABLE_LLVM_DYLIB_ATEXIT)
|
||||
extern "C" int __cxa_atexit();
|
||||
extern "C" int __cxa_atexit() { return 0; }
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user