]> granicus.if.org Git - clang/commitdiff
clang/lib/Driver/Driver.cpp: Split COMPILER_PATH according to llvm::sys::PathSeparato...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 12 Dec 2012 06:22:22 +0000 (06:22 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 12 Dec 2012 06:22:22 +0000 (06:22 +0000)
Thanks to Bogon Kim!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169964 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index 90396008e1bbb034b7451c65e67539c863aac33c..d41bce5ba527a44105e89793e0f4433fbc448acb 100644 (file)
@@ -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;
     }