[PATCH] D35780: Introduce -nostdlib++ flag to disable linking the C++ standard library.

Hans Wennborg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 25 10:23:30 PDT 2017


hans accepted this revision.
hans added a comment.
This revision is now accepted and ready to land.

This seems reasonable to me.



================
Comment at: lib/Driver/ToolChain.cpp:660
+  assert(!Args.hasArg(options::OPT_nostdlibxx) &&
+         "should not have called this");
   CXXStdlibType Type = GetCXXStdlibType(Args);
----------------
The message here doesn't really add any info. I think asserting without a message in this case is fine.


https://reviews.llvm.org/D35780





More information about the cfe-commits mailing list