diff --git a/croaring-sys/build.rs b/croaring-sys/build.rs index c3c9411..dc732e9 100644 --- a/croaring-sys/build.rs +++ b/croaring-sys/build.rs @@ -27,6 +27,8 @@ fn main() { .allowlist_type("roaring.*") .allowlist_var("roaring.*") .allowlist_var("ROARING.*") + // https://github.com/rust-lang/rust-bindgen/issues/2500 + .clang_args(["-D__AVX512VLFP16INTRIN_H", "-D__AVX512FP16INTRIN_H"]) .generate() .unwrap_or_else(|_| panic!("could not run bindgen on header CRoaring/roaring.h")) .write_to_file(out_path.join("croaring-sys.rs"))