mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
Rustup to rustc 1.49.0-nightly (c71248b70
2020-10-11)
This commit is contained in:
parent
2f2d3b2fd4
commit
6258b86c40
@ -1 +1 @@
|
|||||||
nightly-2020-10-11
|
nightly-2020-10-12
|
||||||
|
@ -74,17 +74,13 @@ fn main() {
|
|||||||
if use_jit {
|
if use_jit {
|
||||||
args.push("-Cprefer-dynamic".to_string());
|
args.push("-Cprefer-dynamic".to_string());
|
||||||
}
|
}
|
||||||
rustc_driver::run_compiler(
|
let mut run_compiler = rustc_driver::RunCompiler::new(&args, &mut callbacks);
|
||||||
&args,
|
run_compiler.set_make_codegen_backend(Some(Box::new(move |_| {
|
||||||
&mut callbacks,
|
Box::new(rustc_codegen_cranelift::CraneliftCodegenBackend {
|
||||||
None,
|
config: rustc_codegen_cranelift::BackendConfig { use_jit },
|
||||||
None,
|
})
|
||||||
Some(Box::new(move |_| {
|
})));
|
||||||
Box::new(rustc_codegen_cranelift::CraneliftCodegenBackend {
|
run_compiler.run()
|
||||||
config: rustc_codegen_cranelift::BackendConfig { use_jit },
|
|
||||||
})
|
|
||||||
})),
|
|
||||||
)
|
|
||||||
});
|
});
|
||||||
// The extra `\t` is necessary to align this label with the others.
|
// The extra `\t` is necessary to align this label with the others.
|
||||||
print_time_passes_entry(callbacks.time_passes, "\ttotal", start.elapsed());
|
print_time_passes_entry(callbacks.time_passes, "\ttotal", start.elapsed());
|
||||||
|
@ -92,21 +92,15 @@ fn main() {
|
|||||||
|
|
||||||
let mut callbacks = CraneliftPassesCallbacks { use_clif };
|
let mut callbacks = CraneliftPassesCallbacks { use_clif };
|
||||||
|
|
||||||
rustc_driver::run_compiler(
|
let mut run_compiler = rustc_driver::RunCompiler::new(&args, &mut callbacks);
|
||||||
&args,
|
if use_clif {
|
||||||
&mut callbacks,
|
run_compiler.set_make_codegen_backend(Some(Box::new(move |_| {
|
||||||
None,
|
Box::new(rustc_codegen_cranelift::CraneliftCodegenBackend {
|
||||||
None,
|
config: rustc_codegen_cranelift::BackendConfig { use_jit: false },
|
||||||
if use_clif {
|
})
|
||||||
Some(Box::new(move |_| {
|
})));
|
||||||
Box::new(rustc_codegen_cranelift::CraneliftCodegenBackend {
|
}
|
||||||
config: rustc_codegen_cranelift::BackendConfig { use_jit: false },
|
run_compiler.run()
|
||||||
})
|
|
||||||
}))
|
|
||||||
} else {
|
|
||||||
None
|
|
||||||
},
|
|
||||||
)
|
|
||||||
});
|
});
|
||||||
std::process::exit(exit_code)
|
std::process::exit(exit_code)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user