Skip to content

Commit

Permalink
Exclude max_align_t from bindgen
Browse files Browse the repository at this point in the history
Until rust-lang/rust-bindgen#550 is
resolved, this is necessary for the generated tests to pass.
  • Loading branch information
Aaron1011 committed Jul 27, 2017
1 parent bd9b8f2 commit 1ac75a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions build.rs_ → build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ fn main() {
// to bindgen, and lets you build up options for
// the resulting bindings.
let bindings = bindgen::Builder::default()
// The input header we would like to generate
// bindings for.
.header("wrapper.h")
// Finish the builder and generate the bindings.
.hide_type("max_align_t")
.generate()
// Unwrap the Result and panic on failure.
.expect("Unable to generate bindings");

// Write the bindings to the $OUT_DIR/bindings.rs file.
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]


include!("bindings.rs");
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

#[macro_use]
extern crate lazy_static;
Expand Down

0 comments on commit 1ac75a8

Please sign in to comment.