Skip to content

Commit

Permalink
before
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxxen committed Jun 3, 2024
1 parent 7bcde24 commit 373bc03
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions crates/libduckdb-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ mod build_bundled {

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() {
cfg.include(openssl_include_dir);
}
add_extension(&mut cfg, &manifest, "httpfs", &mut cpp_files, &mut include_dirs);
}

for f in cpp_files {
cfg.file(f);
}
Expand All @@ -155,15 +163,6 @@ mod build_bundled {
if win_target() {
cfg.define("DUCKDB_BUILD_LIBRARY", None);
}

#[cfg(feature = "httpfs")]
{
if let Ok((_, openssl_include_dir)) = super::openssl::get_openssl_v2() {
cfg.include(openssl_include_dir);
}
add_extension(&mut cfg, &manifest, "httpfs", &mut cpp_files, &mut include_dirs);
}

cfg.compile(lib_name);
println!("cargo:lib_dir={out_dir}");
}
Expand Down

0 comments on commit 373bc03

Please sign in to comment.