rust-lang / libz-sys

Rust crate package to link to a system libz (zlib)
Apache License 2.0
117 stars 77 forks source link

cc: Only enable ARM_NEON when in target_feature #196

Closed wcampbell0x2a closed 4 months ago

wcampbell0x2a commented 4 months ago

To enable NEON in the future, I think the following will need to be addressed with adding compiler options:

  cargo:warning=                 from src/zlib-ng/arch/arm/slide_hash_neon.c:12:
  cargo:warning=/usr/local/lib/gcc/arm-linux-musleabi/9.2.0/include/arm_neon.h:31:2: error: #error "NEON intrinsics not available with the soft-float ABI.  Please use -mfloat-abi=softfp or -mfloat-abi=hard"
  cargo:warning=   31 | #error "NEON intrinsics not available with the soft-float ABI.  Please use -mfloat-abi=softfp or -mfloat-abi=hard"
Byron commented 4 months ago

Thanks a lot!