[cfe-dev] How to generate compile_commands.json for clang?
Ilya Biryukov via cfe-dev
cfe-dev at lists.llvm.org
Mon Apr 1 02:48:45 PDT 2019
Does 'ninja clang' (or 'make clang') produce any results?
Did you specify '-DLLVM_ENABLE_PROJECTS=clang' in your initial CMake run?
On Sun, Mar 31, 2019 at 6:04 PM Guangqing Chen via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> I'm new to clang.
> I follow the [get_started](https://clang.llvm.org/get_started.html) to
> build clang (on linux).
> However, if I add `-DCMAKE_EXPORT_COMPILER_COMMANDS` to the cmake command,
> the resulted compile_commands.json only contains llvm related cpp.
> What should I do to get that of clang?
> Thanks for any help!
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev