[cfe-dev] compile_commands.json for Windows/MSVC

Reid Kleckner rnk at google.com
Tue Aug 13 10:05:45 PDT 2013


On Tue, Aug 13, 2013 at 12:08 AM, Richard <legalize at xmission.com> wrote:

> > What generator (-G) are you using?
>
> When I originally created the build structure, I generated VS 2012
> project files.


Searching the CMake source, I only see mentions of
CMAKE_EXPORT_COMPILE_COMMANDS in the make and ninja generators.  The
feature is probably unimplemented for Visual Studio project files.

ninja works fairly well with the MSVC toolchain so you could try that.

Even if you get the cl.exe command lines, clang tools won't understand them
by default, and clang-cl is very new.  We haven't used with clang tools,
and we haven't used it to build anything really big and complicated yet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130813/d43e4455/attachment.html>


More information about the cfe-dev mailing list