diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-01-11 18:55:59 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-01-11 18:55:59 +0100 |
| commit | e0775fbc8ab1ecc83bce42fe6e11accf481bc9e1 (patch) | |
| tree | 3d5119500fbb8627829e54e6bc999c3689ab4a0f /embassy-boot-stm32/build.rs | |
| parent | b452a6bcf6858893a85882614e2dcde5a3405748 (diff) | |
Flatten embassy-boot dir tree
Diffstat (limited to 'embassy-boot-stm32/build.rs')
| -rw-r--r-- | embassy-boot-stm32/build.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/embassy-boot-stm32/build.rs b/embassy-boot-stm32/build.rs new file mode 100644 index 000000000..2cbc7ef5e --- /dev/null +++ b/embassy-boot-stm32/build.rs | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | use std::env; | ||
| 2 | |||
| 3 | fn main() { | ||
| 4 | let target = env::var("TARGET").unwrap(); | ||
| 5 | if target.starts_with("thumbv6m-") { | ||
| 6 | println!("cargo:rustc-cfg=armv6m"); | ||
| 7 | } | ||
| 8 | } | ||
