Adding a new option to CMake to disable C++ atexit on llvm-shlib.
authorChris Bieneman <beanz@apple.com>
Tue, 9 Dec 2014 18:49:55 +0000 (18:49 +0000)
committerChris Bieneman <beanz@apple.com>
Tue, 9 Dec 2014 18:49:55 +0000 (18:49 +0000)
commiteaf599792183d00c577586876fea7f3b545e832f
tree5cec1dbade151f9403e0c5038c3e6f3b283baf5b
parent648f7c7eb1ce92e18338bd4ba6370671e16664f7
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
CMakeLists.txt
include/llvm/Config/config.h.cmake
tools/llvm-shlib/libllvm.cpp