X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Fcompile-test.rs;h=2b0fea0f8b9f0746e9f0496b70d36ad594044719;hb=4f21b5b11207166dbd8210a0ec7510fc09734fb7;hp=d532d4e5a599e4a21ad81d890e5ec7fa9e5dc4e6;hpb=3c4f5bfae23ea80e4a09e6887c94d14139106bdf;p=rust.git diff --git a/tests/compile-test.rs b/tests/compile-test.rs index d532d4e5a59..2b0fea0f8b9 100644 --- a/tests/compile-test.rs +++ b/tests/compile-test.rs @@ -46,7 +46,9 @@ fn config(dir: &'static str, mode: &'static str) -> compiletest::Config { config.target_rustcflags = Some(format!("-L {0} -L {0}/deps -Dwarnings", host_libs().display())); config.mode = cfg_mode; - config.build_base = { + config.build_base = if rustc_test_suite().is_some() { + PathBuf::from("/tmp/clippy_test_build_base") + } else { let mut path = std::env::current_dir().unwrap(); path.push("target/debug/test_build_base"); path