Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Emann committed Sep 27, 2023
1 parent d64082a commit 8c9afae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions croaring-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ fn main() {
.allowlist_type("roaring.*")
.allowlist_var("roaring.*")
.allowlist_var("ROARING.*")
// https://github.com/rust-lang/rust-bindgen/issues/2500
// This only disables avx512 for bindgen parsing the heaers, not for the actual build,
// this should be fine, since avx512 types are not exposed in the public API, they are
// only an implementation detail.
.clang_arg("-DCROARING_COMPILER_SUPPORTS_AVX512=0")
.clang_arg("-U__AVX2__")
.generate()
.unwrap_or_else(|_| panic!("could not run bindgen on header CRoaring/roaring.h"))
.write_to_file(out_path.join("croaring-sys.rs"))
Expand Down

0 comments on commit 8c9afae

Please sign in to comment.