]> granicus.if.org Git - clang/commit
[driver] add a new option `-gen-cdb-fragment-path` to emit
authorAlex Lorenz <arphaman@gmail.com>
Mon, 26 Aug 2019 17:59:41 +0000 (17:59 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 26 Aug 2019 17:59:41 +0000 (17:59 +0000)
commit2116900d5c2aef64b09edd88f1fe895a30731ce8
tree6c59a82508c80e56f424487297c9bf3f93fa323d
parent5d8005a07ec6516f59c429a9950fe1845669ab0c
[driver] add a new option `-gen-cdb-fragment-path` to emit
a fragment of a compilation database for each compilation

This patch adds a new option called -gen-cdb-fragment-path to the driver,
which can be used to specify a directory path to which clang can emit a fragment
of a CDB for each compilation it needs to invoke.

This option emits the same CDB contents as -MJ, and will be ignored if -MJ is specified.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369938 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
lib/Driver/ToolChains/Clang.cpp
lib/Driver/ToolChains/Clang.h
test/Driver/gen-cdb-fragment.c [new file with mode: 0644]