Fail loudly if a build.rs dependency path can't be printed.

This commit is contained in:
Dan Gohman
2018-06-07 14:12:12 -07:00
parent e4fe1db3b8
commit fdf89edbfe

View File

@@ -50,7 +50,7 @@ fn main() {
// The `build.py` script prints out its own dependencies. // The `build.py` script prints out its own dependencies.
println!( println!(
"cargo:rerun-if-changed={}", "cargo:rerun-if-changed={}",
crate_dir.join("build.rs").to_string_lossy() crate_dir.join("build.rs").to_str().unwrap()
); );
// Scripts are in `$crate_dir/meta`. // Scripts are in `$crate_dir/meta`.