diff --git a/crates/libduckdb-sys/build.rs b/crates/libduckdb-sys/build.rs index 5042a7c6..7c83129e 100644 --- a/crates/libduckdb-sys/build.rs +++ b/crates/libduckdb-sys/build.rs @@ -138,8 +138,6 @@ mod build_bundled { cfg.include(lib_name); - cfg.includes(include_dirs.iter().map(|x| format!("{}/{}", lib_name, x))); - #[cfg(feature = "httpfs")] { if let Ok((_, openssl_include_dir)) = super::openssl::get_openssl_v2() { @@ -148,6 +146,8 @@ mod build_bundled { add_extension(&mut cfg, &manifest, "httpfs", &mut cpp_files, &mut include_dirs); } + cfg.includes(include_dirs.iter().map(|x| format!("{}/{}", lib_name, x))); + for f in cpp_files { cfg.file(f); }