Skip to content

Commit e118ce5

Browse files
dmakarovLucasSte
authored andcommitted
[SOL] Fix missing SBF customizations
1 parent b353d19 commit e118ce5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_codegen_ssa/src/back/linker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ impl<'a> GccLinker<'a> {
337337
self.linker_arg(&format!("--out-implib={}", (*implib).to_str().unwrap()));
338338
}
339339
}
340-
} else if self.sess.target.arch == "bpf" {
340+
} else if self.sess.target.arch == "bpf" || self.sess.target.arch == "sbf" {
341341
if self.sess.opts.test {
342342
self.linker_arg("--entry=main");
343343
} else {

library/core/tests/lazy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn once_cell_get_mut() {
2525
}
2626

2727
// sbf doesn't have mutable static data
28-
#[cfg(not(any(target_arch = "bpf", target_arg = "sbf")))]
28+
#[cfg(not(any(target_arch = "bpf", target_arch = "sbf")))]
2929
#[test]
3030
fn once_cell_drop() {
3131
static DROP_CNT: AtomicUsize = AtomicUsize::new(0);

0 commit comments

Comments
 (0)