dascandy / evoke

Magic build tool
Apache License 2.0
166 stars 17 forks source link

Add compilation database support #8

Closed rLinks234 closed 5 years ago

rLinks234 commented 5 years ago

As documented here: https://clang.llvm.org/docs/JSONCompilationDatabase.html

This is a useful format which is produced by systems such as CMake and consumed by environments such as CLion (this can help resolve issue #5 ).

dascandy commented 5 years ago

Picking this up now; should be in before Monday. @rLinks234 can you help me test it? I haven't used it myself before.

rLinks234 commented 5 years ago

Sure @dascandy - just ping me here/on slack when you have the code in.

dascandy commented 5 years ago

@rLinks234 It's in now; please test whenever you have time. I've looked at the database locally and it looks OK to my interpretation of the spec... but that doesn't guarantee anything, of course :-)

dascandy commented 5 years ago

I've tried it myself and CLion imports it fine, but then refuses to use it for anything. Might be related to this so keeping the issue open.

dascandy commented 5 years ago

Looks like the compilation database part works well; I can recompile individual files. Reworking the command-line option as it has a fixed name so needs no argument.