forked from OSchip/llvm-project
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
This commit is contained in:
parent
07cc84876e
commit
ad80c5ef76
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue