diff options
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r-- | lib/Driver/ToolChains.cpp | 6 |
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; } |