Skip to content

Commit

Permalink
[SOL] Fix missing SBF customizations
Browse files Browse the repository at this point in the history
  • Loading branch information
dmakarov committed Dec 22, 2021
1 parent 0630edf commit 3c1d3db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_ssa/src/back/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ impl<'a> GccLinker<'a> {
self.linker_arg(&format!("--out-implib={}", (*implib).to_str().unwrap()));
}
}
} else if self.sess.target.arch == "bpf" {
} else if self.sess.target.arch == "bpf" || self.sess.target.arch == "sbf" {
if self.sess.opts.test {
self.linker_arg("--entry=main");
} else {
Expand Down
2 changes: 1 addition & 1 deletion library/core/tests/lazy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn once_cell_get_mut() {
}

// sbf doesn't have mutable static data
#[cfg(not(any(target_arch = "bpf", target_arg = "sbf")))]
#[cfg(not(any(target_arch = "bpf", target_arch = "sbf")))]
#[test]
fn once_cell_drop() {
static DROP_CNT: AtomicUsize = AtomicUsize::new(0);
Expand Down

0 comments on commit 3c1d3db

Please sign in to comment.