[PATCH] D12689: [libc++][static linking] std streams are not initialized prior to their use in static object constructors

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 10 08:41:33 PDT 2015


rnk added a subscriber: rnk.
rnk added a comment.

I think a better approach would be to use `__attribute__((init_priority(101)))` on Linux and `#pragma init_seg(lib)` on Windows to ensure that libc++'s iostream initializer runs earlier.


http://reviews.llvm.org/D12689





More information about the cfe-commits mailing list