compiledb icon indicating copy to clipboard operation
compiledb copied to clipboard

Compilation database is empty with recursive make pattern

Open TomMD opened this issue 4 years ago • 4 comments

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 ([]).

TomMD avatar Nov 26 '20 01:11 TomMD

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

FZGabriel avatar Jan 17 '23 22:01 FZGabriel

@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.

TomMD avatar Jan 17 '23 23:01 TomMD

Thanks for your answer Tom.

FZGabriel avatar Jan 18 '23 14:01 FZGabriel

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

SeanPcWoo avatar Mar 16 '23 06:03 SeanPcWoo