From: Chandler Carruth Date: Sun, 16 Oct 2011 11:05:04 +0000 (+0000) Subject: Fix a silly bug introduced in r142133. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16a63552480b137c6ef1379d2eeb866a12183bd4;p=clang Fix a silly bug introduced in r142133. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142134 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 2ce0d8082e..825a83d8b8 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -1694,13 +1694,13 @@ private: // up to the lib directory. const std::string Suffixes[] = { "/gcc/" + CandidateTriple.str(), - CandidateTriple.str() + "/gcc/" + CandidateTriple.str(), + "/" + CandidateTriple.str() + "/gcc/" + CandidateTriple.str(), // Ubuntu has a strange mis-matched pair of triples that this happens to // match. // FIXME: It may be worthwhile to generalize this and look for a second // triple. - CandidateTriple.str() + "/gcc/i686-linux-gnu" + "/" + CandidateTriple.str() + "/gcc/i686-linux-gnu" }; const std::string InstallSuffixes[] = { "/../../..",