aboutsummaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-05-14 18:35:40 -0600
committerMelody Horn <melody@boringcactus.com>2021-05-14 18:35:40 -0600
commitca72a896dcbf631971a564413bd684bb637b747e (patch)
tree7fe8f28d33f5a718e3cf44af118e0e36ef9d33b3 /build.rs
parentd8ba4ec621d7cf169be97c8fc5e6f1db919681c9 (diff)
downloadtcl-sys-ca72a896dcbf631971a564413bd684bb637b747e.tar.gz
tcl-sys-ca72a896dcbf631971a564413bd684bb637b747e.zip
pass tcl source dir forward, hopefully
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.rs b/build.rs
index 27736cd..4234c90 100644
--- a/build.rs
+++ b/build.rs
@@ -158,18 +158,21 @@ fn main() {
let target_os = get_os_from_triple(target.as_str()).unwrap();
let tcl_source_path = download_tcl();
+ println!("cargo:tcl-source={}", tcl_source_path.to_str().unwrap());
let tcl_compiled_path = compile_tcl(tcl_source_path.as_path(), target_os);
let tcl_include_path = tcl_compiled_path.join("include");
let tcl_lib_path = tcl_compiled_path.join("lib");
- println!("cargo:rustc-link-search={}", tcl_lib_path.display());
+ println!("cargo:rustc-link-search={}", tcl_lib_path.to_str().unwrap());
let include_paths = vec![String::from(tcl_include_path.to_str().unwrap())];
println!("cargo:include={}", include_paths.join(":"));
generate_bindings(target.as_str(), host.as_str(), include_paths.as_slice());
link_tcl(target_os);
+
+ println!("cargo:rerun-if-changed=build.rs");
}
// headers_path is a list of directories where the Tcl headers are expected