We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d64082a commit 1a7e7deCopy full SHA for 1a7e7de
croaring-sys/build.rs
@@ -27,6 +27,11 @@ fn main() {
27
.allowlist_type("roaring.*")
28
.allowlist_var("roaring.*")
29
.allowlist_var("ROARING.*")
30
+ // https://github.com/rust-lang/rust-bindgen/issues/2500
31
+ // This only disables avx512 for bindgen parsing the heaers, not for the actual build,
32
+ // this should be fine, since avx512 types are not exposed in the public API, they are
33
+ // only an implementation detail.
34
+ .clang_arg("-DCROARING_COMPILER_SUPPORTS_AVX512=0")
35
.generate()
36
.unwrap_or_else(|_| panic!("could not run bindgen on header CRoaring/roaring.h"))
37
.write_to_file(out_path.join("croaring-sys.rs"))
0 commit comments