rizsotto / Bear

Bear is a tool that generates a compilation database for clang tooling.
GNU General Public License v3.0
4.76k stars 312 forks source link

Empty Output when cross compiling with docker container #452

Closed ReggieMarr closed 2 years ago

ReggieMarr commented 2 years ago

'm having trouble cross compiling with a docker container and I can't make sense of the config.

I build using docker so it looks like this

docker exec -it bob /bin/bash -c "cd /shared/myrepo && make -f MyMakefile -j -B" 

And the output is something like this


arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -x assembler-with-cpp  -c k60-reset.s -o build/objs/k60-reset.o

But the compile_commands.json is empty
rizsotto commented 2 years ago

https://github.com/rizsotto/Bear/blob/master/source/citnames/man/citnames.1.md#config-file

The compilation.compilers_to_recognize needs an entry, with the absolute path of arm-none-eabi-gcc.