From 5f0fc0c00148c6128ee9354ba7360b386a59bef5 Mon Sep 17 00:00:00 2001 From: Fenrir Date: Mon, 31 Jul 2017 23:23:20 -0600 Subject: Add unwinding strategy for panics --- examples/.cargo/config | 3 +++ examples/3ds.json | 1 - examples/Cargo.toml | 4 ++++ examples/Xargo.toml | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/.cargo/config b/examples/.cargo/config index d2c7139..a81612c 100644 --- a/examples/.cargo/config +++ b/examples/.cargo/config @@ -10,6 +10,9 @@ rustflags = [ "-Clink-arg=-mtune=mpcore", "-Clink-arg=-mfpu=vfp", "-Clink-arg=-mtp=soft", + "-Clink-arg=-z", + "-Clink-arg=muldefs", + "-Clink-arg=-lgcc", "-Clink-arg=-lsysbase", "-Clink-arg=-lc" ] diff --git a/examples/3ds.json b/examples/3ds.json index bec3423..6aea864 100644 --- a/examples/3ds.json +++ b/examples/3ds.json @@ -14,6 +14,5 @@ "relocation-model": "static", "executables": true, "exe-suffix": ".elf", - "panic-strategy": "abort", "linker-flavor": "gcc" } diff --git a/examples/Cargo.toml b/examples/Cargo.toml index e01118a..412b5b2 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -5,5 +5,9 @@ version = "0.1.0" [dependencies] ctru-rs = { path = "../ctru-rs" } + +[profile.dev] +lto = true + [profile.release] lto = true diff --git a/examples/Xargo.toml b/examples/Xargo.toml index 7cc0423..a91284d 100644 --- a/examples/Xargo.toml +++ b/examples/Xargo.toml @@ -1,5 +1,7 @@ [dependencies.collections] [dependencies.rand] +[dependencies.panic_abort] +[dependencies.panic_unwind] [dependencies.std] path = "../ctr-std" -- cgit v1.2.3