Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [Driver] Also obey -nostdlib++ when rewriting -lstdc++. | Dan Albert | 2018-12-18 | 1 | -0/+9 |
| | | | | | | | | | | | | Reviewers: pirama Reviewed By: pirama Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D55856 llvm-svn: 349570 | ||||
* | Introduce -nostdlib++ flag to disable linking the C++ standard library. | Nico Weber | 2017-07-25 | 1 | -0/+8 |
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++. https://reviews.llvm.org/D35780 llvm-svn: 308997 |