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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits