Merge pull request #224 from gwilymk/print-warnings-for-assembler

Print warnings for assembler
This commit is contained in:
Gwilym Kuiper 2022-04-26 22:27:31 +01:00 committed by GitHub
commit 06f701af75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -25,5 +25,11 @@ fn main() {
String::from_utf8_lossy(&out.stderr)
);
for warning_line in String::from_utf8_lossy(&out.stderr).split('\n') {
if !warning_line.is_empty() {
println!("cargo:warning={}", warning_line);
}
}
println!("cargo:rustc-link-search={}", out_dir);
}

View file

@ -26,10 +26,10 @@ InterruptHandler:
@ call the rust interrupt handler with r0 set to the triggered interrupts
ldr r1, =__RUST_INTERRUPT_HANDLER
push {lr, r2}
push {r2, lr}
mov lr, pc
bx r1
pop {lr, r2}
pop {r2, lr}
@ change back to interrupt mode
mrs r1, cpsr