Intercept build commands using ptrace #522
i-ky
started this conversation in
Show and tell
Replies: 1 comment 8 replies
-
Hey @i-ky , this is a good proposal... Bear is already using 2 interception mode (the compiler wrappers and the library preload), adding another one would increase the chance to cover more builds. And Bear is already split the work of recognizing compiler calls and intercepting process executions. Was looking at your project, it looks very simple. I would be glad to review PRs on this work, if you have time. (I won't be able to work on this in the near future, because I am traveling at the moment.) |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some time ago I was in a search for a way to generate
compile_commands.json
for a project with a very tricky build system that did not respectCC
/CXX
, used hardcoded compiler paths and statically compiled binaries here and there. Unfortunately,bear
is not able to intercept commands in this case. Eventually I came acrosscompile-db-gen
which usesstrace
and then developed my own solution based onptrace
. I wonder if you would be interested in adding such command interception mechanism tobear
. If yes, I will be glad to help.Beta Was this translation helpful? Give feedback.
All reactions