Skip to content

Commit 7696f98

Browse files
davidtwcoantoyo
authored andcommitted
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>
1 parent 564ab10 commit 7696f98

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
@@ -105,6 +105,10 @@ pub struct GccCodegenBackend {
105105
}
106106

107107
impl CodegenBackend for GccCodegenBackend {
108+
fn locale_resource(&self) -> &'static str {
109+
crate::DEFAULT_LOCALE_RESOURCE
110+
}
111+
108112
fn init(&self, sess: &Session) {
109113
if sess.lto() != Lto::No {
110114
sess.emit_warning(LTONotSupported {});

0 commit comments

Comments
 (0)