diff options
| -rw-r--r-- | embassy-nrf-examples/.cargo/config | 20 |
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] | ||
| 2 | namespaced-features = true | ||
| 3 | build-std = ["core"] | ||
| 4 | build-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"))'] |
| 2 | runner = "probe-run --chip nRF52840_xxAA" | 7 | runner = "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] |
| 23 | target = "thumbv7em-none-eabi" | 22 | target = "thumbv7em-none-eabi" |
| 23 | |||
