Skip to content

Commit 2c34497

Browse files
jeplerdpgeorge
authored andcommitted
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>
1 parent 449866c commit 2c34497

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/metrics.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ def do_clean(args):
185185
ports = parse_port_list(args)
186186

187187
print("CLEANING")
188+
189+
if any(port.needs_mpy_cross for port in ports):
190+
syscmd("make", "-C", "mpy-cross", "clean")
191+
188192
for port in ports:
189193
syscmd("make", "-C", "ports/{}".format(port.dir), port.make_flags, "clean")
190194

0 commit comments

Comments
 (0)