Skip to content

Commit

Permalink
twister: Enable armclang on all arm targets
Browse files Browse the repository at this point in the history
Rather than having to add 'armclang' to every <BOARD>.yaml, just list
it as a generally supported toolchain if the architecture is 'arm'.

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
galak authored and carlescufi committed Apr 7, 2023
1 parent 1cfefbe commit 17f0a64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/pylib/twister/twisterlib/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def load(self, platform_file):
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:
Expand Down

0 comments on commit 17f0a64

Please sign in to comment.