use the bootstrapped compiler for test-float-parse test

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2024-09-03 22:54:32 +03:00
parent d6c8169c18
commit 9cb6d12f00

View File

@ -3526,11 +3526,13 @@ fn make_run(run: RunConfig<'_>) {
fn run(self, builder: &Builder<'_>) {
let bootstrap_host = builder.config.build;
let compiler = builder.compiler(0, bootstrap_host);
let compiler = builder.compiler(builder.top_stage, bootstrap_host);
let path = self.path.to_str().unwrap();
let crate_name = self.path.components().last().unwrap().as_os_str().to_str().unwrap();
builder.ensure(compile::Std::new(compiler, self.host));
if !builder.download_rustc() {
builder.ensure(compile::Std::new(compiler, self.host));
}
// Run any unit tests in the crate
let cargo_test = tool::prepare_tool_cargo(