From 17f0a64bd4174866939396a74f4c94a89957ede9 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 6 Apr 2023 16:41:03 -0500 Subject: [PATCH] twister: Enable armclang on all arm targets Rather than having to add 'armclang' to every .yaml, just list it as a generally supported toolchain if the architecture is 'arm'. Signed-off-by: Kumar Gala --- scripts/pylib/twister/twisterlib/platform.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/pylib/twister/twisterlib/platform.py b/scripts/pylib/twister/twisterlib/platform.py index a74a2b61b9..a3c8200f68 100644 --- a/scripts/pylib/twister/twisterlib/platform.py +++ b/scripts/pylib/twister/twisterlib/platform.py @@ -71,6 +71,9 @@ class Platform: self.simulation = data.get('simulation', "na") self.simulation_exec = data.get('simulation_exec') self.supported_toolchains = data.get("toolchain", []) + if self.arch == 'arm': + if 'armclang' not in self.supported_toolchains: + self.supported_toolchains.append('armclang') self.env = data.get("env", []) self.env_satisfied = True for env in self.env: