Support generating NMake/Jom-style depfiles.
authorPaul Robinson <paul_robinson@playstation.sony.com>
Mon, 27 Apr 2015 18:14:32 +0000 (18:14 +0000)
committerPaul Robinson <paul_robinson@playstation.sony.com>
Mon, 27 Apr 2015 18:14:32 +0000 (18:14 +0000)
commitd7214a7651db3dc153f239fe6f1603d865c64b03
tree5455a579bb7d616c30e7195887f67b6c43f1a0a1
parent8fd573e87fd924f67cf0bf0ce021282aa7f81042
Support generating NMake/Jom-style depfiles.

NMake is a Make-like builder that comes with Microsoft Visual Studio.
Jom (https://wiki.qt.io/Jom) is an NMake-compatible build tool.
Dependency files for NMake/Jom need to use double-quotes to wrap
filespecs containing special characters, instead of the backslash
escapes that GNU Make wants.

Adds the -MV option, which specifies to use double-quotes as needed
instead of backslash escapes when writing the dependency file.

Differential Revision: http://reviews.llvm.org/D9260

llvm-svn: 235903
clang/docs/UsersManual.rst
clang/include/clang/Driver/Options.td
clang/include/clang/Frontend/DependencyOutputOptions.h
clang/lib/Driver/Tools.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Frontend/DependencyFile.cpp
clang/test/Frontend/dependency-gen-escaping.c