tools/metrics.py: When cleaning also clean mpy-cross.

Changes of interest could be in emitted mpy frozen files.

Signed-off-by: Jeff Epler <jepler@unpythonic.net>
This commit is contained in:
Jeff Epler
2025-09-03 14:08:21 -05:00
committed by Damien George
parent 449866cb0a
commit 2c34497bd1

View File

@@ -185,6 +185,10 @@ def do_clean(args):
ports = parse_port_list(args)
print("CLEANING")
if any(port.needs_mpy_cross for port in ports):
syscmd("make", "-C", "mpy-cross", "clean")
for port in ports:
syscmd("make", "-C", "ports/{}".format(port.dir), port.make_flags, "clean")