Also create host_dest function to let other callsites retain their old
functionality
}
}
- /// Returns the root of the build output tree for the host
- pub fn host_root(&self) -> &Path {
+ /// Returns the final artifact path for the host (`/…/target/debug`)
+ pub fn host_dest(&self) -> &Path {
self.host.dest()
}
+ /// Returns the root of the build output tree for the host (`/…/target`)
+ pub fn host_root(&self) -> &Path {
+ self.host.root()
+ }
+
/// Returns the host `deps` directory path.
pub fn host_deps(&self) -> &Path {
self.host.deps()
let output_file = script_run_dir.join("output");
let err_file = script_run_dir.join("stderr");
let root_output_file = script_run_dir.join("root-output");
- let host_target_root = cx.files().host_root().to_path_buf();
+ let host_target_root = cx.files().host_dest().to_path_buf();
let all = (
id,
pkg_name.clone(),
exec.init(cx, unit);
let exec = exec.clone();
- let root_output = cx.files().host_root().to_path_buf();
+ let root_output = cx.files().host_dest().to_path_buf();
let target_dir = cx.bcx.ws.target_dir().into_path_unlocked();
let pkg_root = unit.pkg.root().to_path_buf();
let cwd = rustc