Allow printing the version of the default codegen backend if it isn't llvm

This commit is contained in:
bjorn3 2021-05-29 15:14:05 +02:00
parent f04a2d308e
commit 1870f9b05f
3 changed files with 22 additions and 29 deletions

View file

@ -167,6 +167,10 @@ impl CodegenBackend for CraneliftCodegenBackend {
vec![]
}
fn print_version(&self) {
println!("Cranelift version: {}", cranelift_codegen::VERSION);
}
fn codegen_crate(
&self,
tcx: TyCtxt<'_>,