diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2016-12-01 23:37:45 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2016-12-01 23:37:45 +0000 |
commit | 399aea300f220ee3715cb22b32ac90bb57eca30d (patch) | |
tree | 5743382e90a275740cedb4cfe9ef5f638cf515b0 /clang/docs/JSONCompilationDatabase.rst | |
parent | 85c2184a8e75df6cad959dd93275ef31dcf53834 (diff) | |
download | bcm5719-llvm-399aea300f220ee3715cb22b32ac90bb57eca30d.tar.gz bcm5719-llvm-399aea300f220ee3715cb22b32ac90bb57eca30d.zip |
Extend CompilationDatabase by a field for the output filename
In bigger projects like an Operating System, the same source code is
often compiled in slightly different ways. This could be the difference
between PIC and non-PIC code for static vs dynamic libraries, it could
also be the difference between size optimised versions of tools for
ramdisk images. At the moment, the compilation database has no way to
distinguish such cases. As first step, add a field in the JSON format
for it and process it accordingly.
Differential Revision: https://reviews.llvm.org/D27138
llvm-svn: 288436
Diffstat (limited to 'clang/docs/JSONCompilationDatabase.rst')
-rw-r--r-- | clang/docs/JSONCompilationDatabase.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/docs/JSONCompilationDatabase.rst b/clang/docs/JSONCompilationDatabase.rst index 2b219e536b5..8631e8365ce 100644 --- a/clang/docs/JSONCompilationDatabase.rst +++ b/clang/docs/JSONCompilationDatabase.rst @@ -80,6 +80,9 @@ The contracts for each field in the command object are: supported. - **arguments:** The compile command executed as list of strings. Either **arguments** or **command** is required. +- **output:** The name of the output created by this compilation step. + This field is optional. It can be used to distinguish different processing + modes of the same input file. Build System Integration ======================== |