Skip to content

Commit 6565e74

Browse files
committed
Put global asm behind target cfg
1 parent 916747f commit 6565e74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cortex-m-rt/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ unsafe extern "C" fn reset_handler() -> ! {
372372
}
373373
}
374374

375+
#[cfg(target_arch = "arm")]
375376
global_asm!(r#"
376377
.weak NMI
377378
NMI = DEFAULT_HANDLER

0 commit comments

Comments
 (0)