Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation database is empty with recursive make pattern #111

Open
TomMD opened this issue Nov 26, 2020 · 4 comments
Open

Compilation database is empty with recursive make pattern #111

TomMD opened this issue Nov 26, 2020 · 4 comments

Comments

@TomMD
Copy link

TomMD commented Nov 26, 2020

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
Copy link

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

@TomMD
Copy link
Author

TomMD commented Jan 17, 2023

@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
Copy link

Thanks for your answer Tom.

@SeanPcWoo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants