Skip to content

Commit 1ac75a8

Browse files
committed
Exclude max_align_t from bindgen
Until rust-lang/rust-bindgen#550 is resolved, this is necessary for the generated tests to pass.
1 parent bd9b8f2 commit 1ac75a8

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

build.rs_ renamed to build.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@ fn main() {
1212
// to bindgen, and lets you build up options for
1313
// the resulting bindings.
1414
let bindings = bindgen::Builder::default()
15-
// The input header we would like to generate
16-
// bindings for.
1715
.header("wrapper.h")
18-
// Finish the builder and generate the bindings.
16+
.hide_type("max_align_t")
1917
.generate()
20-
// Unwrap the Result and panic on failure.
2118
.expect("Unable to generate bindings");
2219

2320
// Write the bindings to the $OUT_DIR/bindings.rs file.

src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
#![allow(non_camel_case_types)]
88
#![allow(non_snake_case)]
99

10-
11-
include!("bindings.rs");
10+
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
1211

1312
#[macro_use]
1413
extern crate lazy_static;

0 commit comments

Comments
 (0)