From c44bc24349f247d0d46d8cab2738b37299b97deb Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 18 Jun 2024 11:18:14 +0200 Subject: [PATCH] Update build.rs --- crates/libduckdb-sys/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/libduckdb-sys/build.rs b/crates/libduckdb-sys/build.rs index 0d613278..9189acfa 100644 --- a/crates/libduckdb-sys/build.rs +++ b/crates/libduckdb-sys/build.rs @@ -325,6 +325,7 @@ mod bindings { bindgen::builder() .trust_clang_mangling(false) .header(header.clone()) + .clang_arg("/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR=1") .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) .generate() .unwrap_or_else(|_| panic!("could not run bindgen on header {header}"))