diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2022-11-17 22:49:36 +1100 |
|---|---|---|
| committer | Jim Mussared <jim.mussared@gmail.com> | 2022-11-17 23:03:02 +1100 |
| commit | 4ff10b59767b408aad24602176b7c49e48ceeb46 (patch) | |
| tree | fdadbc0195329fbb4581ad05ddfa32a77e940098 /tests/run-tests.py | |
| parent | beb9b85c591146802772fe236a2c74382bb778a5 (diff) | |
tests/run-tests.py: Use host arch for mpy-cross for target=unix.
This will make mpy-cross auto-detect. Allow overriding for non-default
configurations (e.g. using 32-bit build of the unix port).
Also use armv7m by default for qemu-arm (the default qemu target is
Cortex-M3).
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'tests/run-tests.py')
| -rwxr-xr-x | tests/run-tests.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py index 6031b35b5..35740318e 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -918,8 +918,15 @@ the last matching regex is used: "renesas-ra", "rp2", ) - if args.target in LOCAL_TARGETS or args.list_tests: + if args.list_tests: + pyb = None + elif args.target in LOCAL_TARGETS: pyb = None + if not args.mpy_cross_flags: + if args.target == "unix": + args.mpy_cross_flags = "-march=host" + elif args.target == "qemu-arm": + args.mpy_cross_flags = "-march=armv7m" elif args.target in EXTERNAL_TARGETS: global pyboard sys.path.append(base_path("../tools")) |
