compile_commands.json not generated #17
-
Hi, Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Can you upload a sample? I don't know what this file contains. |
Beta Was this translation helpful? Give feedback.
-
Also please share the command you use to compile on your machine and the command you use with the Docker image . |
Beta Was this translation helpful? Give feedback.
-
It is generated inside the build folder. Below is a little of its content to give an idea (I converted into .txt because json is not supported here). I need it for a static analysis tool. And I if I build the asset_tracker_v2 example inside the container the file is generated... So is probably something wrong with my project? |
Beta Was this translation helpful? Give feedback.
-
As far as I understand, the |
Beta Was this translation helpful? Give feedback.
-
It worked, thank you. Just a little strange that in my machine and with the asset_tracker_v2 inside the container I don't need to specify this in the west build command. |
Beta Was this translation helpful? Give feedback.
As far as I understand, the
compile_commands.json
is generated by Cmake. You should be able to pass this config option to Cmake using one-time compiler arguments when runningwest build
.