Skip to content

Commit b6f0b46

Browse files
committed
Allow printing the version of the default codegen backend if it isn't llvm
1 parent 20e9a13 commit b6f0b46

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ impl CodegenBackend for CraneliftCodegenBackend {
167167
vec![]
168168
}
169169

170+
fn print_version(&self) {
171+
println!("Cranelift version: {}", cranelift_codegen::VERSION);
172+
}
173+
170174
fn codegen_crate(
171175
&self,
172176
tcx: TyCtxt<'_>,

0 commit comments

Comments
 (0)