summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-12-12 06:22:22 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-12-12 06:22:22 +0000
commitad80c5ef76398415b6d7f1db4a35cf73103ebbf1 (patch)
tree5fe6a23e69a44ad70de2e14245f02675c0460ca6
parent07cc84876eed75675446283e0f11e437fe5eabb0 (diff)
downloadbcm5719-llvm-ad80c5ef76398415b6d7f1db4a35cf73103ebbf1.tar.gz
bcm5719-llvm-ad80c5ef76398415b6d7f1db4a35cf73103ebbf1.zip
clang/lib/Driver/Driver.cpp: Split COMPILER_PATH according to llvm::sys::PathSeparator, that is ';' in Win32 hosts.
Thanks to Bogon Kim! llvm-svn: 169964
-rw-r--r--clang/lib/Driver/Driver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 90396008e1b..d41bce5ba52 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -238,7 +238,8 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
if (char *env = ::getenv("COMPILER_PATH")) {
StringRef CompilerPath = env;
while (!CompilerPath.empty()) {
- std::pair<StringRef, StringRef> Split = CompilerPath.split(':');
+ std::pair<StringRef, StringRef> Split
+ = CompilerPath.split(llvm::sys::PathSeparator);
PrefixDirs.push_back(Split.first);
CompilerPath = Split.second;
}
OpenPOWER on IntegriCloud