Closed oatberry closed 3 years ago
What kind of issue is this?
PlatformIO Version (platformio --version): 5.1.1
platformio --version
$ pio run -t compiledb
compile_commands.json
[]
The content of platformio.ini:
platformio.ini
[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
We have tests that we run natively as this library contains no embedded-specific behavior, just business logic. I would think this would enable generation of a useful compile_commands.json that I can feed to clangd...
Fixed in https://github.com/platformio/platform-native/commit/5124578abb60f04bdc48d521d9613686c5ef6f03
Please update dev-platform native to the latest version via pio update.
native
pio update
Thanks!!
What kind of issue is this?
Configuration
PlatformIO Version (
platformio --version
): 5.1.1Description of problem
Steps to Reproduce
$ pio run -t compiledb
in a library that doesn't generate binariesActual Results
compile_commands.json
contains only[]
Expected Results
compile_commands.json
should I think at least contain info for building the library objectsIf problems with PlatformIO Build System:
The content of
platformio.ini
:Additional info
We have tests that we run natively as this library contains no embedded-specific behavior, just business logic. I would think this would enable generation of a useful
compile_commands.json
that I can feed to clangd...