diff options
| author | David Wood <david.wood@huawei.com> | 2022-10-17 14:11:26 +0100 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2023-02-22 09:15:54 +0000 |
| commit | 93fdcfa554af34c01970db8ace1e724214913f8f (patch) | |
| tree | 56df8ec9c7a4a423a18e7fd69cf5188c30d17236 | |
| parent | 8996171e8891d8b1f715a6e39b28753860113e56 (diff) | |
| download | rust-93fdcfa554af34c01970db8ace1e724214913f8f.tar.gz rust-93fdcfa554af34c01970db8ace1e724214913f8f.zip | |
various: translation resources from cg backend
Extend `CodegenBackend` trait with a function returning the translation resources from the codegen backend, which can be added to the complete list of resources provided to the emitter. Signed-off-by: David Wood <david.wood@huawei.com>
| -rw-r--r-- | src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index c7fe382bac4..5ba568bfd6e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -172,6 +172,11 @@ pub struct CraneliftCodegenBackend { } impl CodegenBackend for CraneliftCodegenBackend { + fn locale_resource(&self) -> &'static str { + // FIXME(rust-lang/rust#100717) - cranelift codegen backend is not yet translated + "" + } + fn init(&self, sess: &Session) { use rustc_session::config::Lto; match sess.lto() { |
