Skip to content

Commit 13e25d2

Browse files
committed
force toolchain
Signed-off-by: Anas Nashif <[email protected]>
1 parent a5db7e8 commit 13e25d2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/pylib/twister/twisterlib/environment.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,9 @@ def add_parse_arguments(parser = None) -> argparse.ArgumentParser:
459459
help="Do not filter based on toolchain, use the set "
460460
" toolchain unconditionally")
461461

462+
parser.add_argument("--force-toolchain-variant",
463+
help="Use toolchain variant, do not auto-detect")
464+
462465
footprint_group.add_argument(
463466
"--create-rom-ram-report",
464467
action="store_true",
@@ -1106,7 +1109,10 @@ def non_default_options(self) -> dict:
11061109

11071110
def discover(self):
11081111
self.check_zephyr_version()
1109-
self.get_toolchain()
1112+
if self.options.force_toolchain_variant:
1113+
self.toolchain = self.options.force_toolchain_variant
1114+
else:
1115+
self.get_toolchain()
11101116
self.run_date = datetime.now(timezone.utc).isoformat(timespec='seconds')
11111117

11121118
def check_zephyr_version(self):

0 commit comments

Comments
 (0)