Skip to content

Commit 984945a

Browse files
committed
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 <[email protected]>
1 parent 3e14bba commit 984945a

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
@@ -103,6 +103,10 @@ pub struct GccCodegenBackend {
103103
}
104104

105105
impl CodegenBackend for GccCodegenBackend {
106+
fn locale_resource(&self) -> &'static str {
107+
crate::DEFAULT_LOCALE_RESOURCE
108+
}
109+
106110
fn init(&self, sess: &Session) {
107111
if sess.lto() != Lto::No {
108112
sess.emit_warning(LTONotSupported {});

0 commit comments

Comments
 (0)