[PATCH] D45233: [Driver] Update GCC libraries detection logic for Gentoo.

Michał Górny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 4 13:13:26 PDT 2018


mgorny added a comment.

Thanks. Besides that one tiny nit, looks good at a first glance. I'll test it tomorrow or the next day (but only for the most basic use, sorry).

However, I do not feel confident enough with Clang code to ack change this large on my own. So let's wait for @chandlerc to take a second look, or maybe try to add more reviewers.



================
Comment at: lib/Driver/ToolChains/Gnu.cpp:2300
+            ConfLine = ConfLine.trim();
+            if (ConfLine.consume_front("LDPATH=\"") &&
+                ConfLine.consume_back("\"")) {
----------------
mgorny wrote:
> This probably doesn't harm but I'd prefer if quotes weren't considered an obligatory part of the string. I'd rather grab it by `LDPATH=` and strip quotes afterwards if present on both sides. But I won't insist on this.
Well, I meant stripping them if **both** are present. However, this is not a biggie.


Repository:
  rC Clang

https://reviews.llvm.org/D45233





More information about the cfe-commits mailing list