From: NAKAMURA Takumi Date: Wed, 12 Dec 2012 06:22:22 +0000 (+0000) Subject: clang/lib/Driver/Driver.cpp: Split COMPILER_PATH according to llvm::sys::PathSeparato... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04ee66e1fee44e72ee57845c1405a7f498a9daf7;p=clang clang/lib/Driver/Driver.cpp: Split COMPILER_PATH according to llvm::sys::PathSeparator, that is ';' in Win32 hosts. Thanks to Bogon Kim! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169964 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 90396008e1..d41bce5ba5 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -238,7 +238,8 @@ Compilation *Driver::BuildCompilation(ArrayRef ArgList) { if (char *env = ::getenv("COMPILER_PATH")) { StringRef CompilerPath = env; while (!CompilerPath.empty()) { - std::pair Split = CompilerPath.split(':'); + std::pair Split + = CompilerPath.split(llvm::sys::PathSeparator); PrefixDirs.push_back(Split.first); CompilerPath = Split.second; }