Closed GowthamKudupudi closed 1 year ago
Sorry @GowthamKudupudi this is a not supported use case.
On MacOS, the compiler warppers are used to intercept the compiler calls. The best thing I can recommend is to write a simple makefile, which uses the CC
environment variable. And you can call Bear as CC=clang bear -- make
.
print_mpz: print_mpz.c
$(CC) -o $@ $< -lgmp -ggdb -O3
Describe the bug On macOS with bear 3.0.20, the generated compile_commands.json doesn't have any entries.
To Reproduce Steps to reproduce the behavior:
bear -- clang -o print_mpz print_mpz.c -lgmp -ggdb -O0
Expected behavior A compile_commands.json with entries in it should be created.
Environment:
Additional context
The compile command works fine without bear.