File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
scripts/pylib/twister/twisterlib Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments