verpeteren / rust-simd-noise

SIMD noise library for Rust
https://crates.io/crates/simdnoise
252 stars 20 forks source link

Add cfg conditionals to support compiling on non-x86 targets #31

Closed Schuwi closed 4 years ago

Schuwi commented 4 years ago

This PR guards avx/sse related functionality behind a #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] to make compilation exclusively using the scalar implementation possible on non-x86 targets. I am not familiar with this library, so tell me whether I missed anything. I compiled successfully with this library for AArch64.