From 01ad34de1b46fe778e3127f2f35f3083a3a0c2ab Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sat, 30 Dec 2023 18:03:27 +0800 Subject: [PATCH] Add workaround for potential miscompilation https://github.com/rust-embedded/cortex-m/discussions/503 -z is 229kB, -s is 248KB text, so worth keeping -z --- embassy/demos/picow/.cargo/config.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/embassy/demos/picow/.cargo/config.toml b/embassy/demos/picow/.cargo/config.toml index 6183e70..1ba6bd5 100644 --- a/embassy/demos/picow/.cargo/config.toml +++ b/embassy/demos/picow/.cargo/config.toml @@ -3,6 +3,7 @@ runner = "probe-run --chip RP2040" [build] target = "thumbv6m-none-eabi" +rustflags = "-Cllvm-args=--enable-machine-outliner=never" [env] DEFMT_LOG = "debug"