Fix Windows+MinGW which introduces noise into path separators.

There should be a better solution to this; Michael and I are continuing
to discuss exactly what it should be. The one solution I'm very
uncomfortable with is making the FileCheck tests use a regex for each
path separator.

llvm-svn: 141126
This commit is contained in:
Chandler Carruth 2011-10-04 22:22:13 +00:00
parent 3d11aa7e75
commit 7dc477ef77
1 changed files with 5 additions and 1 deletions

View File

@ -1685,7 +1685,11 @@ public:
BestVersion = CandidateVersion;
GccTriple = CandidateTriple.str();
GccInstallPath = LI->path();
// FIXME: We hack together the directory name here instead of
// using LI to ensure stable path separators across Windows and
// Linux.
GccInstallPath = (TripleDir + Suffixes[l] + "/" +
VersionText.str());
GccParentLibPath = GccInstallPath + InstallSuffixes[l];
IsValid = true;
}