aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFenrir <[email protected]>2017-07-31 23:23:20 -0600
committerFenrir <[email protected]>2017-07-31 23:23:20 -0600
commit5f0fc0c00148c6128ee9354ba7360b386a59bef5 (patch)
tree3fe53b38fa6487a03c8938a1132e0e14f273d430 /examples
parentMerge pull request #41 from FenrirWolf/panic-reboot (diff)
downloadarchived-ctru-rs-5f0fc0c00148c6128ee9354ba7360b386a59bef5.tar.xz
archived-ctru-rs-5f0fc0c00148c6128ee9354ba7360b386a59bef5.zip
Add unwinding strategy for panics
Diffstat (limited to 'examples')
-rw-r--r--examples/.cargo/config3
-rw-r--r--examples/3ds.json1
-rw-r--r--examples/Cargo.toml4
-rw-r--r--examples/Xargo.toml2
4 files changed, 9 insertions, 1 deletions
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"