Hpmason / retour-rs

A cross-platform detour library written in Rust
Other
98 stars 18 forks source link

Provide support for `aarch64-apple-darwin`. #57

Open pauliesnug opened 2 weeks ago

pauliesnug commented 2 weeks ago

Is it possible to support Apple Silicon? When I build on aarch64-apple-darwin, I recieve a compiler error because the arch/x86 modules aren't registered.

I noticed a comment from the old repo, https://github.com/Hpmason/retour-rs/blob/master/src/arch/mod.rs#L25, which implies plans to add support for aarch64, but is this new fork also planning to implement it?

Hpmason commented 1 week ago

I would definitely like to support more targets, including aarch64-apple-darwin, sadly I don't have a machine to test it with. I'm pretty sure I can get compilation working by cross compiling with zig cc, but running/testing it is another thing. If you have an Apple Silicon device and have the time to help test it, I'd be happy to start work on an implementation!

pauliesnug commented 1 week ago

I would definitely like to support more targets, including aarch64-apple-darwin, sadly I don't have a machine to test it with. I'm pretty sure I can get compilation working by cross compiling with zig cc, but running/testing it is another thing. If you have an Apple Silicon device and have the time to help test it, I'd be happy to start work on an implementation!

I'd love to test it! I do have an Apple Silicon device.