[PATCH] D31996: Make Gentoo GNU GCC Config override whitespace tolerant
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 12 16:27:43 PDT 2017
erichkeane updated this revision to Diff 95054.
erichkeane added a comment.
Oops, yeah, good suggestion.
https://reviews.llvm.org/D31996
Files:
lib/Driver/ToolChains/Gnu.cpp
Index: lib/Driver/ToolChains/Gnu.cpp
===================================================================
--- lib/Driver/ToolChains/Gnu.cpp
+++ lib/Driver/ToolChains/Gnu.cpp
@@ -2173,6 +2173,7 @@
SmallVector<StringRef, 2> Lines;
File.get()->getBuffer().split(Lines, "\n");
for (StringRef Line : Lines) {
+ Line = Line.trim();
// CURRENT=triple-version
if (Line.consume_front("CURRENT=")) {
const std::pair<StringRef, StringRef> ActiveVersion =
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31996.95054.patch
Type: text/x-patch
Size: 486 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170412/fac75dd8/attachment.bin>
More information about the cfe-commits
mailing list