[libcxx-commits] [PATCH] D103960: [libc++] Towards a simpler extern template story in libc++

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 28 11:36:29 PDT 2021


ldionne added a comment.

In D103960#2903608 <https://reviews.llvm.org/D103960#2903608>, @smeenai wrote:

> In D103960#2808574 <https://reviews.llvm.org/D103960#2808574>, @ldionne wrote:
>
>> @smeenai What do you think about this (since you added the knob in the first place)? Do you agree with my assessment that the goal of avoiding a dependency on the library isn't met by `_LIBCPP_EXTERN_TEMPLATE` alone?
>
> Sorry, this got buried in my inbox!
>
> This looks like a great simplification to me. The work that originally needed this knob is defunct, and we were actually bitten by it in another place (something with the iostream static initializers got messed up IIRC). Doing a static link if you don't want the library dependency (and making it hermetic if you want it to be self-contained) SGTM.

No worries, and awesome, I'm quite happy to make this simplification.

I'll need to fix a few things with the debug mode first though, since we currently assume that we can run debug mode tests against the non-debug-mode-built dylib, which doesn't work.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103960/new/

https://reviews.llvm.org/D103960



More information about the libcxx-commits mailing list