Skip to content

Commit

Permalink
Try to get bindgen working
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Emann committed Sep 29, 2023
1 parent 8af14f2 commit e024d27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions croaring-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ fn main() {
.allowlist_type("roaring.*")
.allowlist_var("roaring.*")
.allowlist_var("ROARING.*")
// https://github.com/rust-lang/rust-bindgen/issues/2500
// Try just pretending to be a 32-bit platform?
.clang_arg("-m32")
.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 e024d27

Please sign in to comment.