summaryrefslogtreecommitdiff
path: root/tests/run-tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-tests.py')
-rwxr-xr-xtests/run-tests.py9
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"))