From 04ee66e1fee44e72ee57845c1405a7f498a9daf7 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 12 Dec 2012 06:22:22 +0000 Subject: [PATCH] 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 --- lib/Driver/Driver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.50.1