We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
prepare_tool_cargo
1 parent 4f37325 commit 9c766adCopy full SHA for 9c766ad
src/bootstrap/tool.rs
@@ -250,6 +250,10 @@ pub fn prepare_tool_cargo(
250
}
251
252
253
+ // cargo doesn't set this env var yet, but it's needed by expect-test
254
+ // to build correct absolute paths for test_data files
255
+ cargo.env("CARGO_WORKSPACE_DIR", &dir);
256
+
257
// clippy tests need to know about the stage sysroot. Set them consistently while building to
258
// avoid rebuilding when running tests.
259
cargo.env("SYSROOT", builder.sysroot(compiler));
0 commit comments