aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/ToolChains.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-10-04 22:22:13 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-10-04 22:22:13 +0000
commit74410686903d0effda6eb1ef88bc570bc240ba19 (patch)
tree778e48aba4b61a7a276354df59b86d4a12ca9efb /lib/Driver/ToolChains.cpp
parent6ab8e6231f75500ea4d0c7755032ffc98e71a25f (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141126 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r--lib/Driver/ToolChains.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
index 14ac85ecb5..5fbbd3842e 100644
--- a/lib/Driver/ToolChains.cpp
+++ b/lib/Driver/ToolChains.cpp
@@ -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;
}