xtask: feature specific target dirs
This commit is contained in:
parent
6ebcf1bd27
commit
cdb16d8e15
|
@ -329,9 +329,15 @@ fn cargo_exec(
|
|||
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)
|
||||
.stdout_capture()
|
||||
.stderr_capture()
|
||||
.env("CARGO_TARGET_DIR", target_dir)
|
||||
.reader()?;
|
||||
|
||||
Ok(
|
||||
|
|
Loading…
Reference in a new issue