aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2021-02-28 21:38:10 +0100
committerDario Nieuwenhuis <[email protected]>2021-02-28 21:38:10 +0100
commit7139155f2d63a9d99d740a2bb1b2e2964df3e3c3 (patch)
treedf5b61fc987bcaf72c9152d5fb4b0700a0d0ebd0
parentda917791174510637c69660b10b1e201d22cfe9d (diff)
Add code size optimization flags.
-rw-r--r--embassy-nrf-examples/.cargo/config20
1 files changed, 10 insertions, 10 deletions
diff --git a/embassy-nrf-examples/.cargo/config b/embassy-nrf-examples/.cargo/config
index 2bfb098ef..37e38ec95 100644
--- a/embassy-nrf-examples/.cargo/config
+++ b/embassy-nrf-examples/.cargo/config
@@ -1,3 +1,8 @@
1[unstable]
2namespaced-features = true
3build-std = ["core"]
4build-std-features = ["panic_immediate_abort"]
5
1[target.'cfg(all(target_arch = "arm", target_os = "none"))'] 6[target.'cfg(all(target_arch = "arm", target_os = "none"))']
2runner = "probe-run --chip nRF52840_xxAA" 7runner = "probe-run --chip nRF52840_xxAA"
3 8
@@ -7,17 +12,12 @@ rustflags = [
7 "-C", "link-arg=-Tlink.x", 12 "-C", "link-arg=-Tlink.x",
8 "-C", "link-arg=-Tdefmt.x", 13 "-C", "link-arg=-Tdefmt.x",
9 14
10 # if you run into problems with LLD switch to the GNU linker by commenting out 15 # Code-size optimizations.
11 # this line 16 "-Z", "trap-unreachable=no",
12 # "-C", "linker=arm-none-eabi-ld", 17 "-C", "inline-threshold=5",
13 18 "-C", "no-vectorize-loops",
14 # if you need to link to pre-compiled C libraries provided by a C toolchain
15 # use GCC as the linker by commenting out both lines above and then
16 # uncommenting the three lines below
17 # "-C", "linker=arm-none-eabi-gcc",
18 # "-C", "link-arg=-Wl,-Tlink.x",
19 # "-C", "link-arg=-nostartfiles",
20] 19]
21 20
22[build] 21[build]
23target = "thumbv7em-none-eabi" 22target = "thumbv7em-none-eabi"
23