diff --git a/crates/libduckdb-sys/build.rs b/crates/libduckdb-sys/build.rs index 1ae4533a..0d613278 100644 --- a/crates/libduckdb-sys/build.rs +++ b/crates/libduckdb-sys/build.rs @@ -164,6 +164,7 @@ mod build_bundled { if win_target() { cfg.define("DUCKDB_BUILD_LIBRARY", None); + cfg.define("_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR", None); } cfg.compile(lib_name); println!("cargo:lib_dir={out_dir}");