I’ve got a medium-size platformio library project, and I’m trying to get set up do work on it from my beloved emacs. I found that I can generate a compile_commands.json file to give to clangd, and I can successfully generate one in another project that builds binaries, but not in this library-only project. We have tests that build the library, but doing
$ pio run -t compiledb yields a json file with only
 in it… Is there any way I can get a useful compilation db out of this? Thanks!
Here’s the whole
[native] platform = native test_transport = native build_flags = -std=c++17 debug_build_flags = -g -DDEBUG lib_ldf_mode = deep [env:release] extends = native build_type = release [env:debug] extends = native build_type = debug