Skip to content

Commit 338aad1

Browse files
committed
build native_sim with llvm
1 parent 545cbe4 commit 338aad1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/pylib/twister/twisterlib/runner.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,10 @@ def run_cmake(self, args="", filter_stages=[]):
616616
f'-D{warning_command}={warnings_as_errors}',
617617
f'-DEXTRA_GEN_EDT_ARGS={gen_edt_args}',
618618
f'-G{self.env.generator}',
619-
f'-DPython3_EXECUTABLE={pathlib.Path(sys.executable).as_posix()}'
619+
f'-DPython3_EXECUTABLE={pathlib.Path(sys.executable).as_posix()}',
620620
]
621+
if self.platform.name == 'native_sim/native':
622+
cmake_args.append(f'-DZEPHYR_TOOLCHAIN_VARIANT=llvm')
621623

622624
# If needed, run CMake using the package_helper script first, to only run
623625
# a subset of all cmake modules. This output will be used to filter

0 commit comments

Comments
 (0)