diff options
| author | Henrik Tjäder <henrik@tjaders.com> | 2023-02-05 19:39:29 +0100 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2023-03-01 00:35:15 +0100 |
| commit | 6ed64610c982f4e3648b73604ac4ba190476bf3d (patch) | |
| tree | 36f3c68b5a80933a0a8f8f1063091b6781f8915d /xtask | |
| parent | afba4c7b14f68d589fee2de515075a339689ee95 (diff) | |
xtask: Add thumbv8.base thumbv8.main
Diffstat (limited to 'xtask')
| -rw-r--r-- | xtask/src/main.rs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 01e7934..d05e981 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -26,6 +26,8 @@ use crate::{ const ARMV6M: &str = "thumbv6m-none-eabi"; const ARMV7M: &str = "thumbv7m-none-eabi"; +const ARMV8MBASE: &str = "thumbv8m.base-none-eabi"; +const ARMV8MMAIN: &str = "thumbv8m.main-none-eabi"; const DEFAULT_FEATURES: Option<&str> = Some("test-critical-section"); @@ -40,6 +42,8 @@ struct Cli { /// /// thumbv6m-none-eabi /// thumbv7m-none-eabi + /// thumbv8m.base-none-eabi + /// thumbv8m.main-none-eabi #[arg(short, long)] target: Option<String>, @@ -166,10 +170,18 @@ fn main() -> anyhow::Result<()> { if !probably_running_from_repo_root { bail!("xtasks can only be executed from the root of the `rtic` repository"); } + for entry in std::fs::read_dir(".").unwrap() { - let mut targets: Vec<String> = [ARMV7M.to_owned(), ARMV6M.to_owned()].to_vec(); - let mut examples: Vec<_> = std::fs::read_dir("./rtic/examples")? + let mut targets: Vec<String> = [ + ARMV7M.to_owned(), + ARMV6M.to_owned(), + ARMV8MBASE.to_owned(), + ARMV8MMAIN.to_owned(), + ] + .to_vec(); + + let examples: Vec<_> = std::fs::read_dir("./rtic/examples")? .filter_map(|p| p.ok()) .map(|p| p.path()) .filter(|p| p.display().to_string().ends_with(".rs")) |
