nickdiego / compiledb

Tool for generating Clang's JSON Compilation Database files for make-based build systems.
GNU General Public License v3.0
1.36k stars 121 forks source link

Support Windows & cl.exe/clang-cl.exe #128

Open helmesjo opened 1 year ago

helmesjo commented 1 year ago

This PR adds support for Windows (mainly dealing with \ ), and also adds cl.exe & clang-cl.exe (.exe extension optional).

Verified on a big project of mine (thousands of files), and still works fine on Linux/Macos with gcc & clang/appleclang.

Todo:

If anyone wants to chip in that be swell. Working with a broken finger and arm cast so kinda suboptimal.

If you don't want to wait for this PR to be completed (if ever, this repo seems pretty abandoned), you can install it directly using: pip install git+https://github.com/helmesjo/compiledb@support-cl-clang-cl Work out-of-the-box on Windows and with MSVC. If not, let me know.

GitMensch commented 1 year ago

Do you mind squashing the last two commits into one?

helmesjo commented 1 year ago

@GitMensch Sorry for the delay, missed your comment. Squashed the commits.