Skip to content

Commit ce1099a

Browse files
committed
Add specification of clang_macro_fallback_build_dir
Signed-off-by: mulhern <[email protected]>
1 parent 247ce6a commit ce1099a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libcryptsetup-rs-sys/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ fn generate_bindings(library: &Library, safe_free_is_needed: bool) {
3232
)
3333
.header("header.h")
3434
.size_t_is_usize(true)
35-
.clang_macro_fallback();
35+
.clang_macro_fallback()
36+
.clang_macro_fallback_build_dir(PathBuf::from(env::var("OUT_DIR").unwrap()));
3637
#[cfg(target_arch = "x86")]
3738
let builder = builder.blocklist_type("max_align_t");
3839
let builder_with_safe_free = if safe_free_is_needed {

0 commit comments

Comments
 (0)