17451k / clade

Clade is a tool for extracting information about software build process and source code
Apache License 2.0
19 stars 6 forks source link

Intercept build commands using ptrace #145

Open i-ky opened 1 year ago

i-ky commented 1 year ago

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 commented 1 year ago

See also https://github.com/rizsotto/Bear/discussions/522

17451k commented 11 months ago

I apologize for the lack of response - I no longer actively maintain this project due to a job change. Thanks for the suggestion though, maybe I will follow up on it sometime in the future!

i-ky commented 11 months ago

Thank you for a response! It is good to know that the project is not dead.

Feel free to ping me when you find time and motivation to give this feature some love.