clade
clade copied to clipboard
Intercept build commands using ptrace
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 respect CC
/CXX
, used hardcoded compiler paths and statically compiled binaries here and there. Unfortunately, clade
is not able to intercept commands in this case. Eventually I came across compile-db-gen
which uses strace
and then developed my own solution based on ptrace
. I wonder if you would be interested in adding such command interception mechanism to clade
. If yes, I will be glad to help.