[PATCH] D35780: Introduce -nostdlib++ flag to disable linking the C++ standard library.
Nico Weber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 23 11:57:08 PDT 2017
thakis added a comment.
Most of the patch is unifying all the toolchains to call the newly-introduced ToolChain::ShouldLinkCXXStdlib() instead of all manually checking for `D.CCIsCXX() && !getFlag(nostdlib, nodefaultlibs)`. The actual behavior change is to make that function check the new nostdlib++ flag too.
One use-case for this new flag is https://cs.chromium.org/chromium/src/build/config/c%2B%2B/BUILD.gn?type=cs&q=nodefaultlibs&sq=package:chromium&l=32
https://reviews.llvm.org/D35780
More information about the cfe-commits
mailing list