compile_commands.json for docker #611
Closed
JugglerShu
started this conversation in
General
Replies: 1 comment
-
https://github.com/rizsotto/Bear/wiki/Troubleshooting#the-output-is-empty This ^ page has a section which describes the difficulties to intercept the compilers executed in docker. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a build system which internally invokes docker to run a compiler.
The build system itself is python scripts(relatively large) and inside the scripts it invokes several dockers to run make or other commands.
It looks like
bear -- python3 build_script.py
doesn't generate compile_commands.json for the commands invoked inside the docker containers.Is there any way to generate compile_commands.json for commands in docker?
I tried simple example like
where a Makefile is in ~/Temp dir
and this generates empty compile_commands.json.
I'm using bear version 3.0.18
Beta Was this translation helpful? Give feedback.
All reactions