diff options
| author | Ulf Lilleengen <[email protected]> | 2024-09-19 09:15:55 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2024-09-19 09:22:47 +0200 |
| commit | 4e1efd93fd4dc8dd692daf419d901ae22413e091 (patch) | |
| tree | 3c453373e1c443121ee4e18e3d2c482e41c3b971 /examples/boot/application/nrf/build.rs | |
| parent | df23a77bfc3c8b5d8ab6adbd12842fa4cfe3675d (diff) | |
Fix defmt support for example boot app
Diffstat (limited to 'examples/boot/application/nrf/build.rs')
| -rw-r--r-- | examples/boot/application/nrf/build.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/boot/application/nrf/build.rs b/examples/boot/application/nrf/build.rs index cd1a264c4..e1da69328 100644 --- a/examples/boot/application/nrf/build.rs +++ b/examples/boot/application/nrf/build.rs | |||
| @@ -31,4 +31,7 @@ fn main() { | |||
| 31 | 31 | ||
| 32 | println!("cargo:rustc-link-arg-bins=--nmagic"); | 32 | println!("cargo:rustc-link-arg-bins=--nmagic"); |
| 33 | println!("cargo:rustc-link-arg-bins=-Tlink.x"); | 33 | println!("cargo:rustc-link-arg-bins=-Tlink.x"); |
| 34 | if env::var("CARGO_FEATURE_DEFMT").is_ok() { | ||
| 35 | println!("cargo:rustc-link-arg-bins=-Tdefmt.x"); | ||
| 36 | } | ||
| 34 | } | 37 | } |
