Re: [PATCH] Makefile: add support for generating JSON compilation database
- From
Philippe Blain <levraiphilippeblain@gmail.com>
- Date
- Aug 30, 2020, 22:17 UTC
- Message-ID
- <FC95CFF7-F9DA-4CDA-9923-99C3432DCAD5@gmail.com>
- In-Reply-To
- <pull.714.git.1598815707540.gitgitgadget@gmail.com>
Show 7 quoted lines
> # > +# Define GENERATE_COMPILATION_DATABASE to generate JSON compilation database > +# entries during compilation if your compiler supports it, using the `-MJ` flag. > +# The JSON entries will be placed in the `compile_commands/` directory, > +# and the JSON compilation database can be created afterwards with > +# `make compile_commands.json`. > +#
I'm realizing that the way I'm describing how it works here is wrong: there is no separate 'make compile_commands.json' step needed (it was needed in my first draft).
I'll fix that for v2.