diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-05-29 15:14:05 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-06-04 13:20:04 +0200 |
| commit | b6f0b46e2004d7a40f2deae0caa5dc22e53e42b7 (patch) | |
| tree | ae3b80a930d1d38bdd559e4b3226704a78319b4e /src | |
| parent | 20e9a1372b136a1d62d6fb8f5c351260f388eb58 (diff) | |
| download | rust-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.rs | 4 |
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<'_>, |
