DescriptionChange the way libc++ is linked when use_custom_libcxx=1.
Instead of passing libc++.so and libc++abi.so on the command line to the linker,
we want to be able to simply pass -stdlib=libc++ to the clang driver and let it
make the decision about linking the DSOs. In this way we can avoid linking
libc++ into C executables.
To this effect we introduce a proxy target which adds -stdlib=libc++ to direct
dependents' flags but does not link the actual DSO. We also link libc++abi
statically into libc++. The latter change is necessary because clang's
-stdlib=libc++ mode is set up to use libsupc++ as the ABI implementation, and
will not automatically pick up libc++abi.so.
BUG=318770
R=glider@chromium.org, thakis@chromium.org
NOTRY=true
TEST=msan
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268169
Patch Set 1 #Patch Set 2 : nuke commented lines #
Total comments: 1
Patch Set 3 : s/L/l #
Messages
Total messages: 6 (0 generated)
|