From 0db53fb764d695eec5118caaa9e5fba55de18caa Mon Sep 17 00:00:00 2001 From: frectonz Date: Sun, 23 Jun 2024 22:21:16 +0300 Subject: [PATCH] fix header location --- crates/libduckdb-sys/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/libduckdb-sys/build.rs b/crates/libduckdb-sys/build.rs index 95949d49..af413d0c 100644 --- a/crates/libduckdb-sys/build.rs +++ b/crates/libduckdb-sys/build.rs @@ -97,7 +97,7 @@ mod build_bundled { #[cfg(feature = "buildtime_bindgen")] { use super::{bindings, HeaderLocation}; - let header = HeaderLocation::FromPath(format!("{}/src/include/duckdb.h", lib_name)); + let header = HeaderLocation::FromPath(format!("{out_dir}/{lib_name}/src/include/duckdb.h")); bindings::write_to_out_dir(header, out_path); } #[cfg(not(feature = "buildtime_bindgen"))] @@ -132,7 +132,7 @@ mod build_bundled { // Since the manifest controls the set of files, we require it to be changed to know whether // to rebuild the project - println!("cargo:rerun-if-changed={}/manifest.json", lib_name); + println!("cargo:rerun-if-changed={out_dir}/{lib_name}/manifest.json"); // Make sure to rebuild the project if tar file changed println!("cargo:rerun-if-changed=duckdb.tar.gz");