3420cbf744
Previously the cargo configurations of all of the example projects had `build-std = ["core"]`, which forces compilation of `core` as a code-size optimisation. However, this is strictly unnecessary and will currently break for users who do not use `rustup` directly (e.g. nix users).
16 lines
442 B
TOML
16 lines
442 B
TOML
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
|
|
runner = "probe-run-rp --chip RP2040"
|
|
|
|
rustflags = [
|
|
# LLD (shipped with the Rust toolchain) is used as the default linker
|
|
"-C", "link-arg=--nmagic",
|
|
"-C", "link-arg=-Tlink.x",
|
|
"-C", "link-arg=-Tlink-rp.x",
|
|
"-C", "link-arg=-Tdefmt.x",
|
|
|
|
# Code-size optimizations.
|
|
"-Z", "trap-unreachable=no",
|
|
]
|
|
|
|
[build]
|
|
target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+
|