Skip to content

Commit a09627b

Browse files
committed
Don't emit _start entry point in test mode
1 parent 59022ce commit a09627b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub mod bootinfo;
1414
#[macro_export]
1515
macro_rules! entry_point {
1616
($path:path) => {
17+
#[cfg(not(test))]
1718
#[export_name = "_start"]
1819
pub extern "C" fn __impl_start(boot_info: &'static $crate::bootinfo::BootInfo) -> ! {
1920
// validate the signature of the program entry point

0 commit comments

Comments
 (0)