Skip to content

Commit b968503

Browse files
authored
Merge pull request #37 from pftbest/master
Put global asm behind target cfg
2 parents 916747f + 6565e74 commit b968503

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)