summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commit7dc477ef770a8cd624e044de8a0e14fd961b4966 (patch)
tree34a3941f6e98032dcc116d9643db81e394d863e4 /clang/lib
parent3d11aa7e7566d1f38da584679e62102bbef4d116 (diff)
downloadbcm5719-llvm-7dc477ef770a8cd624e044de8a0e14fd961b4966.tar.gz
bcm5719-llvm-7dc477ef770a8cd624e044de8a0e14fd961b4966.zip
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
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Driver/ToolChains.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp
index 14ac85ecb51..5fbbd3842ef 100644
--- a/clang/lib/Driver/ToolChains.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud