[Buildroot] compile commands database with BR compiler

Jesse Van Gavere jesseevg at gmail.com
Tue Dec 13 12:13:10 UTC 2022


Hello all,

A bit of a buildroot adjacent question, we are converting some of our
software to CMake, and I wanted to take the opportunity to add some
additional tooling like clang-tidy/cppcheck... with the exported
compile commands.
This however doesn't seem to really work, I'm presuming it doesn't
play nice with the toolchain wrapper, adding -march and -mfloat-abi
manually to the flags seems to resolve some issues but it still throws
a bunch of errors as if it wouldn't be able to compile even though the
application compiles just fine.
Has anyone here gotten it working to use a compile_commands.json as
input for other tooling that's generated with a BR compiler?

Regards,
Jesse



More information about the buildroot mailing list