зеркало из https://github.com/microsoft/clang-1.git
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
This commit is contained in:
Родитель
1fbf6fb5c7
Коммит
04ee66e1fe
|
@ -238,7 +238,8 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
|
||||||
if (char *env = ::getenv("COMPILER_PATH")) {
|
if (char *env = ::getenv("COMPILER_PATH")) {
|
||||||
StringRef CompilerPath = env;
|
StringRef CompilerPath = env;
|
||||||
while (!CompilerPath.empty()) {
|
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);
|
PrefixDirs.push_back(Split.first);
|
||||||
CompilerPath = Split.second;
|
CompilerPath = Split.second;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче