nickdiego / compiledb

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

Compilation database is empty with recursive make pattern #111

Open TomMD opened 4 years ago

TomMD commented 4 years ago

I'm seeing empty compilation databases from facebook/zstd makefile. It has a pattern of:

Foo:
    $(MAKE) -C lib

Meaning if we:

compiledb make Foo

There are lots of invocations of gcc but the resulting compile_commands.json is empty ([]).

FZGabriel commented 1 year ago

Hi @TomMD. Did you find a workaround? Best regards.

TomMD commented 1 year ago

@FZGabriel No workaround identified. I might have used bear or just used a wrapper gcc binary that recorded the call like how Infer works, can't recall.

FZGabriel commented 1 year ago

Thanks for your answer Tom.

SeanPcWoo commented 1 year ago

I have the same problem. Now I use bear in linux, however bear not work in my macbookpro, m1max chipset.