xtask: feature specific target dirs
This commit is contained in:
parent
6ebcf1bd27
commit
cdb16d8e15
|
@ -329,9 +329,15 @@ fn cargo_exec(
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let target_dir = METADATA
|
||||||
|
.get()
|
||||||
|
.unwrap()
|
||||||
|
.target_directory
|
||||||
|
.join(format!("xtargets/{renderer}"));
|
||||||
|
std::fs::create_dir_all(&target_dir)?;
|
||||||
|
|
||||||
let output = duct::cmd("cargo", args)
|
let output = duct::cmd("cargo", args)
|
||||||
.stdout_capture()
|
.env("CARGO_TARGET_DIR", target_dir)
|
||||||
.stderr_capture()
|
|
||||||
.reader()?;
|
.reader()?;
|
||||||
|
|
||||||
Ok(
|
Ok(
|
||||||
|
|
Loading…
Reference in a new issue