Skip to content

Commit 0a51bb8

Browse files
nashifstephanosio
authored andcommitted
twister: fix variant handling
Signed-off-by: Anas Nashif <[email protected]>
1 parent 3175af2 commit 0a51bb8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/pylib/twister/twisterlib/testplan.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,10 @@ def apply_filters(self, **kwargs):
880880
if itoolchain:
881881
toolchain = itoolchain
882882
elif plat.arch in ['posix', 'unit']:
883-
toolchain = 'host/gnu' if not self.env.toolchain else self.env.toolchain
883+
if self.env.toolchain in ['host/llvm']:
884+
toolchain = 'host/llvm'
885+
else:
886+
toolchain = 'host/gnu'
884887
else:
885888
toolchain = "zephyr" if not self.env.toolchain else self.env.toolchain
886889

0 commit comments

Comments
 (0)