compiledb
compiledb copied to clipboard
Compilation database is empty with recursive make pattern
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 ([]
).
Hi @TomMD. Did you find a workaround? Best regards.
@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.
Thanks for your answer Tom.
I have the same problem. Now I use bear in linux, however bear not work in my macbookpro, m1max chipset.