Skip to content

Commit

Permalink
fix: workaround linker errors on external symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
byeongkeunahn committed Mar 1, 2025
1 parent 356f63e commit f2cc909
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions basm-std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
#![feature(maybe_uninit_array_assume_init)]
#![feature(naked_functions)]
#![cfg_attr(not(test), no_std)]
#![cfg_attr(rustfmt, rustfmt_skip)] // temporary fix to keep compiler_builtins at the top to avoid linker errors

extern crate compiler_builtins;
extern crate alloc;

pub mod collections;
Expand Down
2 changes: 2 additions & 0 deletions basm/src/bin/basm-lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#![cfg_attr(not(test), no_builtins)]
#![cfg_attr(not(test), no_std)]
#![cfg_attr(not(test), no_main)]
#![cfg_attr(rustfmt, rustfmt_skip)] // temporary fix to keep compiler_builtins at the top to avoid linker errors

extern crate compiler_builtins;
extern crate alloc;
extern crate basm_std as basm;
mod lang_items;
Expand Down
2 changes: 2 additions & 0 deletions basm/src/bin/basm-submit.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#![cfg_attr(not(test), no_builtins)]
#![cfg_attr(not(test), no_std)]
#![cfg_attr(not(test), no_main)]
#![cfg_attr(rustfmt, rustfmt_skip)] // temporary fix to keep compiler_builtins at the top to avoid linker errors

extern crate compiler_builtins;
extern crate alloc;
extern crate basm_std as basm;
mod lang_items;
Expand Down
2 changes: 2 additions & 0 deletions basm/src/bin/basm.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#![cfg_attr(not(test), no_builtins)]
#![cfg_attr(not(test), no_std)]
#![cfg_attr(not(test), no_main)]
#![cfg_attr(rustfmt, rustfmt_skip)] // temporary fix to keep compiler_builtins at the top to avoid linker errors

extern crate compiler_builtins;
extern crate alloc;
extern crate basm_std as basm;
mod lang_items;
Expand Down

0 comments on commit f2cc909

Please sign in to comment.