Skip to content

Commit e8c1650

Browse files
committed
picolibc: Add support of nSIM to cross file generator
Picolibc for ARC-V uses run-riscv-nsim script for running tests on nSIM. It must be specified as a wrapper in a cross file when nSIM is chosen as a simulator for testing. Signed-off-by: Yuriy Kolerov <[email protected]>
1 parent 853edec commit e8c1650

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/generate_picolibc_cross_file

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ def main(argv):
7373
r"""exe_wrapper = ['sh', '-c', 'test -z "$PICOLIBC_TEST" || run-riscv "$@"', 'run-riscv']"""
7474
+ "\n"
7575
)
76+
elif options.simulator == "nsim":
77+
content += (
78+
r"""exe_wrapper = ['sh', '-c', 'test -z "$PICOLIBC_TEST" || run-riscv-nsim "$@"', 'run-riscv-nsim']"""
79+
+ "\n"
80+
)
7681
else:
7782
print("This simulator is not supported yet: {}.".format(options.simulator), file=sys.stderr)
7883
return 1

0 commit comments

Comments
 (0)