diff options
author | Zachary Turner <zturner@google.com> | 2017-03-15 16:07:35 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-03-15 16:07:35 +0000 |
commit | 9a4d019389c762a32274ed1ca1ead93f79acbcd2 (patch) | |
tree | bb6c00d1d7a846bcb2d5f5fce1092f38a3d9d599 /include/clang/Basic/DiagnosticDriverKinds.td | |
parent | 5bf358b62de7dc5c36779d02252153618401d735 (diff) |
Update clang-cl driver for MSVC 2017.
2017 changes the way you find an installed copy of
Visual Studio as well as its internal directory layout.
As a result, clang-cl was unable to find VS2017 even
when you had run vcvarsall to set up a toolchain
environment. This patch updates everything for 2017
and cleans up the way we handle a tiered search a la
environment -> installation -> PATH for which copy
of Visual Studio to bind to.
Patch originally by Hamza Sood, with some fixups for landing.
Differential Revision: https://reviews.llvm.org/D30758
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297851 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticDriverKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticDriverKinds.td | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticDriverKinds.td b/include/clang/Basic/DiagnosticDriverKinds.td index b02599c8ae..6e744db2cb 100644 --- a/include/clang/Basic/DiagnosticDriverKinds.td +++ b/include/clang/Basic/DiagnosticDriverKinds.td @@ -283,4 +283,8 @@ def warn_drv_ps4_sdk_dir : Warning< def err_drv_unsupported_linker : Error<"unsupported value '%0' for -linker option">; def err_drv_defsym_invalid_format : Error<"defsym must be of the form: sym=value: %0">; def err_drv_defsym_invalid_symval : Error<"Value is not an integer: %0">; +def warn_drv_msvc_not_found : Warning< + "unable to find a Visual Studio installation; " + "try running Clang from a developer command prompt">, + InGroup<InvalidOrNonExistentDirectory>; } |