Skip to content

Commit

Permalink
workaround broken max_align_t
Browse files Browse the repository at this point in the history
A simple workaround for
rust-lang/rust-bindgen#550 that turned on
a test error.
  • Loading branch information
gibix committed Aug 23, 2018
1 parent abd006d commit e28c458
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aom-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ fn main() {
let headers = libs.get("aom").unwrap().include_paths.clone();
// let buildver = libs.get("vpx").unwrap().version.split(".").nth(1).unwrap();

let mut builder = common_builder().header("data/aom.h");
let mut builder = common_builder()
.header("data/aom.h")
.blacklist_type("max_align_t"); // https://github.com/rust-lang-nursery/rust-bindgen/issues/550

for header in headers {
builder = builder.clang_arg("-I").clang_arg(header.to_str().unwrap());
Expand Down

0 comments on commit e28c458

Please sign in to comment.