clade icon indicating copy to clipboard operation
clade copied to clipboard

Intercept build commands using ptrace

Open i-ky opened this issue 1 year ago • 3 comments

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.

i-ky avatar Apr 16 '23 15:04 i-ky