mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 00:56:38 +11:00
Merge pull request #224 from gwilymk/print-warnings-for-assembler
Print warnings for assembler
This commit is contained in:
commit
06f701af75
2 changed files with 8 additions and 2 deletions
|
@ -25,5 +25,11 @@ fn main() {
|
||||||
String::from_utf8_lossy(&out.stderr)
|
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);
|
println!("cargo:rustc-link-search={}", out_dir);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,10 +26,10 @@ InterruptHandler:
|
||||||
|
|
||||||
@ call the rust interrupt handler with r0 set to the triggered interrupts
|
@ call the rust interrupt handler with r0 set to the triggered interrupts
|
||||||
ldr r1, =__RUST_INTERRUPT_HANDLER
|
ldr r1, =__RUST_INTERRUPT_HANDLER
|
||||||
push {lr, r2}
|
push {r2, lr}
|
||||||
mov lr, pc
|
mov lr, pc
|
||||||
bx r1
|
bx r1
|
||||||
pop {lr, r2}
|
pop {r2, lr}
|
||||||
|
|
||||||
@ change back to interrupt mode
|
@ change back to interrupt mode
|
||||||
mrs r1, cpsr
|
mrs r1, cpsr
|
||||||
|
|
Loading…
Add table
Reference in a new issue