Closed SethGower closed 4 years ago
Update:
I got it to work. I am not sure if it was because I just installed it from source instead of apt, which bumped me up to 2.4.3, or something else. I ended up doing a clean build and running bear -vvv --use-cc armcl --use-cc cl6x --use-cc cl-arp32 make -s
. This is a great program!
At work I need to use TI's Vision SDK, and am trying to generate the compilation database for it. They use their own code compilers, and
bear
doesn't seem to be catching all of them. The once that I am trying to get it to catch, along with others is theirarmcl
compiler, because I have determined that is the one that is compiling some of the code I am looking to have indexed. I have tried callingbear --use-cc <full path to armcl> make
(I now realize, after poking around in the source that the full path is unnecessary), and it doesn't seem to catch it since it isn't in thecompile_commands.json
. I have scoured the output of the entiremake
job usingmake -Bnkw | tee build_output.txt
, and have verified that that is the compiler that is being called. But it doesn't seem that it is working.To Reproduce It is kinda hard to reproduce, unless you get their build system working. But here is a snapshot of the compile command
Expected behavior I expect it to catch the
armcl
command, but it doesn't seem to be.Environment:
Linux
x86_64
sudo apt install bear
Additional context