From 6ed64610c982f4e3648b73604ac4ba190476bf3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Sun, 5 Feb 2023 19:39:29 +0100 Subject: [PATCH] xtask: Add thumbv8.base thumbv8.main --- xtask/src/main.rs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 01e7934357..d05e981d33 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, @@ -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 = [ARMV7M.to_owned(), ARMV6M.to_owned()].to_vec(); - let mut examples: Vec<_> = std::fs::read_dir("./rtic/examples")? + let mut targets: Vec = [ + 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"))