Consider ignoring sccache/ccache when generating compile_commands.json

NEW
Unassigned

Status

()

Core
Build Config
5 days ago
5 days ago

People

(Reporter: jwatt, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

It's not clear from:

http://clang.llvm.org/docs/JSONCompilationDatabase.html

whether it's valid for the "command" property to contain anything other than the compiler and its arguments.

Given that compile_commands.json is intended to allow arbitrary tools to discover the compiler and compiler flags used to compile a given file, it seems to me it probably should not include sccache/ccache or other orthogonal artifacts of how the compiler is invoked. It raises the chances of some tool or other not handling our compile_commands.json output correctly.
You need to log in before you can comment on or make changes to this bug.