Index: lib/Driver/ToolChains/Gnu.cpp =================================================================== --- lib/Driver/ToolChains/Gnu.cpp +++ lib/Driver/ToolChains/Gnu.cpp @@ -2173,6 +2173,7 @@ SmallVector 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 ActiveVersion =