Skip to content

Commit 513918b

Browse files
committed
fix: pass target_dir in populate_from_args
The target_dir was not being forwarded from args, causing builds to use the default target directory instead of the user-specified one. This fix is needed for: hyperlight-dev/hyperlight-js@0bec9b1
1 parent 4dd791f commit 513918b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ trait CargoCommandExt {
9292
impl CargoCommandExt for std::process::Command {
9393
fn populate_from_args(&mut self, args: &Args, bootstrap: bool) -> &mut Self {
9494
self.target(&args.target);
95+
self.target_dir(&args.target_dir);
9596
self.sysroot(args.sysroot_dir());
9697
self.append_rustflags("--cfg=hyperlight");
9798
self.append_rustflags("--check-cfg=cfg(hyperlight)");

0 commit comments

Comments
 (0)