[PATCH] Adding a new option to CMake to disable C++ atexit on llvm-shlib.

Chris Bieneman beanz at apple.com
Tue Dec 9 11:45:49 PST 2014


> On Dec 9, 2014, at 11:20 AM, Reid Kleckner <rnk at google.com> wrote:
> 
> How many atexit dtors do we have still? How long do you think this will stay?

Unfortunately a lot. On the order of 1000. Most of those are cl::opt, so hopefully this won’t be needed for long.

> 
> Given that we had such a struggle with the other symbol override in Signals.inc, I'm surprised you went this route. :)

I really didn’t want to do this. Today WebKit builds their own dylib based on LLVM static archives, and we’re trying to get them to use something vended by LLVM. One of their requirements is no static destructors. This is how they are doing it today, and since the cl::opt stuff is still in a bit of limbo (http://reviews.llvm.org/D6207 <http://reviews.llvm.org/D6207>), I need a solution.

I’m really hoping I can pull this out early 2015.

-Chris

> 
> REPOSITORY
>  rL LLVM
> 
> http://reviews.llvm.org/D6572
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141209/c6a596e2/attachment.html>


More information about the llvm-commits mailing list