about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-05-29 15:14:05 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2021-06-04 13:20:04 +0200
commitb6f0b46e2004d7a40f2deae0caa5dc22e53e42b7 (patch)
treeae3b80a930d1d38bdd559e4b3226704a78319b4e /src
parent20e9a1372b136a1d62d6fb8f5c351260f388eb58 (diff)
downloadrust-b6f0b46e2004d7a40f2deae0caa5dc22e53e42b7.tar.gz
rust-b6f0b46e2004d7a40f2deae0caa5dc22e53e42b7.zip
Allow printing the version of the default codegen backend if it isn't llvm
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index de2afc49384..fa776bf9921 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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<'_>,