Skip to content

Commit 1a7e7de

Browse files
committed
1 parent d64082a commit 1a7e7de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

croaring-sys/build.rs

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ fn main() {
2727
.allowlist_type("roaring.*")
2828
.allowlist_var("roaring.*")
2929
.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")
3035
.generate()
3136
.unwrap_or_else(|_| panic!("could not run bindgen on header CRoaring/roaring.h"))
3237
.write_to_file(out_path.join("croaring-sys.rs"))

0 commit comments

Comments
 (0)