trailofbits / siderophile

Find the ideal fuzz targets in a Rust codebase
https://blog.trailofbits.com/2019/07/01/siderophile-expose-your-crates-unsafety/
MIT License
201 stars 13 forks source link

Support Cross Compilation Targets #271

Open 2over12 opened 1 year ago

2over12 commented 1 year ago

For crates that only build on certain platforms it is convenient to use a cross compilation target. Setting up the default target almost works but a target specific dir would need to be pushed here: https://github.com/trailofbits/siderophile/blob/debb857f97d5fa71b89b9cf9d103c25371b42b23/src/callgraph_gen.rs#L109

Probably the easiest way to do this would be to allow passing down a target flag to cargo. If the target flag gets passed down, then the bitcode gets looked for in a non-default dir.

2over12 commented 1 year ago

I've hacked around this for now but if we think this is a good feature I can probably have something done pretty quickly