[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:55:48 PDT 2017
thakis created this revision.
Herald added subscribers: aheejin, jgravelle-google, sbc100, dschuff, jfb, emaste.
Projects that want to statically link their own C++ standard library currently need to pass -nostdlib or -nodefaultlibs, which also disables linking of the builtins library, -lm, and so on. Alternatively, they could use `clang` instead of `clang++`, but that already disables implicit addition of -lm on some toolchains.
Add a dedicated flag -nostdlib++ that disables just linking of libc++ / libstdc++. This is analogous to -nostdinc++.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 15795 bytes
Desc: not available
More information about the cfe-commits