Pass a test directory to rustfmt
This commit is contained in:
parent
e78c51adc2
commit
df97dd1d05
2 changed files with 4 additions and 1 deletions
|
@ -313,6 +313,9 @@ impl Step for Rustfmt {
|
||||||
|
|
||||||
// Don't build tests dynamically, just a pain to work with
|
// Don't build tests dynamically, just a pain to work with
|
||||||
cargo.env("RUSTC_NO_PREFER_DYNAMIC", "1");
|
cargo.env("RUSTC_NO_PREFER_DYNAMIC", "1");
|
||||||
|
let dir = testdir(builder, compiler.host);
|
||||||
|
t!(fs::create_dir_all(&dir));
|
||||||
|
cargo.env("RUSTFMT_TEST_DIR", dir);
|
||||||
|
|
||||||
builder.add_rustc_lib_path(compiler, &mut cargo);
|
builder.add_rustc_lib_path(compiler, &mut cargo);
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit b6cd17f28ae314f2484ff05d3ce57652d51c5e85
|
Subproject commit 0f8029f251b569a010cb5cfc5a8bff8bf3c949ac
|
Loading…
Add table
Add a link
Reference in a new issue