Skip to content

Commit 5537cfd

Browse files
humendaatopia
authored andcommitted
update match ARM with L4Bender variant
1 parent c1bada5 commit 5537cfd

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

compiler/rustc_codegen_ssa/src/back/link.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,7 @@ pub fn linker_and_flavor(sess: &Session) -> (PathBuf, LinkerFlavor) {
11841184
LinkerFlavor::Lld(_) => "lld",
11851185
LinkerFlavor::PtxLinker => "rust-ptx-linker",
11861186
LinkerFlavor::BpfLinker => "bpf-linker",
1187+
LinkerFlavor::L4Bender => "l4-bender",
11871188
}),
11881189
flavor,
11891190
)),

compiler/rustc_codegen_ssa/src/back/linker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ impl<'a> Linker for L4Bender<'a> {
14011401

14021402
fn group_start(&mut self) { self.cmd.arg("--start-group"); }
14031403
fn group_end(&mut self) { self.cmd.arg("--end-group"); }
1404-
fn cross_lang_lto(&mut self) {
1404+
fn linker_plugin_lto(&mut self) {
14051405
// do nothing
14061406
}
14071407
}

library/std/src/sys/unix/l4re.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ pub mod net {
481481

482482
impl LookupHost {
483483
pub fn port(&self) -> u16 {
484-
unimpl!();
484+
0 // unimplemented
485485
}
486486
}
487487

0 commit comments

Comments
 (0)