File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
compiler/rustc_codegen_ssa/src/back Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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]
3030fn once_cell_drop ( ) {
3131 static DROP_CNT : AtomicUsize = AtomicUsize :: new ( 0 ) ;
You can’t perform that action at this time.
0 commit comments