[cfe-commits] r169964 - /cfe/trunk/lib/Driver/Driver.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Tue Dec 11 22:22:22 PST 2012
Author: chapuni
Date: Wed Dec 12 00:22:22 2012
New Revision: 169964
URL: http://llvm.org/viewvc/llvm-project?rev=169964&view=rev
Log:
clang/lib/Driver/Driver.cpp: Split COMPILER_PATH according to llvm::sys::PathSeparator, that is ';' in Win32 hosts.
Thanks to Bogon Kim!
Modified:
cfe/trunk/lib/Driver/Driver.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=169964&r1=169963&r2=169964&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Wed Dec 12 00:22:22 2012
@@ -238,7 +238,8 @@
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;
}
More information about the cfe-commits
mailing list