Skip to content
Snippets Groups Projects
Commit 8cb1bf84 authored by Reid Kleckner's avatar Reid Kleckner
Browse files

clang-cl: Use "clang cl.exe" when disambiguating the diagnostic prefix.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189909 91177308-0d34-0410-b5e6-96231b3b80d8
parent 5013fcf1
No related branches found
No related tags found
No related merge requests found
...@@ -350,8 +350,8 @@ int main(int argc_, const char **argv_) { ...@@ -350,8 +350,8 @@ int main(int argc_, const char **argv_) {
// If the clang binary happens to be named cl.exe for compatibility reasons, // If the clang binary happens to be named cl.exe for compatibility reasons,
// use clang-cl.exe as the prefix to avoid confusion between clang and MSVC. // use clang-cl.exe as the prefix to avoid confusion between clang and MSVC.
StringRef ExeBasename(llvm::sys::path::filename(Path)); StringRef ExeBasename(llvm::sys::path::filename(Path));
if (ExeBasename.trim().equals_lower("cl.exe")) if (ExeBasename.equals_lower("cl.exe"))
ExeBasename = "clang-cl.exe"; ExeBasename = "clang cl.exe";
DiagClient->setPrefix(ExeBasename); DiagClient->setPrefix(ExeBasename);
IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment