]> granicus.if.org Git - clang/commit
[clang-cl] Print /showIncludes to stderr, if used in combination with /E, /EP or /P
authorErich Keane <erich.keane@intel.com>
Fri, 4 May 2018 15:58:31 +0000 (15:58 +0000)
committerErich Keane <erich.keane@intel.com>
Fri, 4 May 2018 15:58:31 +0000 (15:58 +0000)
commita3220b023ee49d5cbe1dbb95334895f6b8997297
treea2f9b8289eaa0143b198212ef57711d0937f550c
parent6070d57e95b132ff42074431f3d9025a44db0957
[clang-cl] Print /showIncludes to stderr, if used in combination with /E, /EP or /P

This replicates 'cl.exe' behavior and allows for both preprocessor output and
dependency information to be extraced with a single compiler invocation.

This is especially useful for compiler caching with tools like Mozilla's sccache.

See: https://github.com/mozilla/sccache/issues/246

Patch By: fxb

Differential Revision: https://reviews.llvm.org/D46394

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331533 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/DependencyOutputOptions.h
lib/Driver/ToolChains/Clang.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/HeaderIncludeGen.cpp
test/Driver/cl-options.c
test/Frontend/print-header-includes.c