Use the panic=abort option instead of -Z no-landing-pads

(cherry picked from commit 725c452157)
This commit is contained in:
Philipp Oppermann
2016-05-29 18:00:29 +02:00
parent 20f7e5472b
commit 69b22d1fc0
2 changed files with 7 additions and 1 deletions

View File

@@ -22,3 +22,9 @@ version = "0.7.0"
[lib]
crate-type = ["staticlib"]
[profile.dev]
panic = "abort"
[profile.release]
panic = "abort"

View File

@@ -49,7 +49,7 @@ $(kernel): cargo $(rust_os) $(assembly_object_files) $(linker_script)
@ld -n --gc-sections -T $(linker_script) -o $(kernel) $(assembly_object_files) $(rust_os)
cargo:
@cargo rustc --target $(target) -- -Z no-landing-pads
@cargo build --target $(target)
# compile assembly files
build/arch/$(arch)/%.o: src/arch/$(arch)/%.asm