[PATCH] Use lowercase version of argv[0] when determining driver mode
Hans Wennborg
hans at chromium.org
Tue Aug 20 14:04:46 PDT 2013
Hi whunt,
This makes a difference on Windows, where e.g. clang-cl might actually be called as CLANG-CL.
http://llvm-reviews.chandlerc.com/D1450
Files:
tools/driver/driver.cpp
Index: tools/driver/driver.cpp
===================================================================
--- tools/driver/driver.cpp
+++ tools/driver/driver.cpp
@@ -226,6 +226,8 @@
{ "++", "--driver-mode=g++" },
};
std::string ProgName(llvm::sys::path::stem(ArgVector[0]));
+ for (size_t i = 0, e = ProgName.length(); i != e; ++i)
+ ProgName[i] = toLowercase(ProgName[i]);
StringRef ProgNameRef(ProgName);
StringRef Prefix;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1450.1.patch
Type: text/x-patch
Size: 448 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130820/7f2fa295/attachment.bin>
More information about the cfe-commits
mailing list