8000 tools/makemanifest.py: Fix build on Windows by adding .exe to mpy-cross. · micropython/micropython@8db5d2d · GitHub
[go: up one dir, main page]

Skip to content

Commit 8db5d2d

Browse files
miketeachmandpgeorge
authored andcommitted
tools/makemanifest.py: Fix build on Windows by adding .exe to mpy-cross.
When using a manifest on Windows the reference to mpy-cross compiler was missing the .exe file extension, so add it when appropriate. Also allow the default path to mpy-cross to be overridden by the (optional) MICROPY_MPYCROSS environment variable, to allow full flexibility on any OS.
1 parent 3e0b46b commit 8db5d2d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/makemanifest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ def main():
235235
# Get paths to tools
236236
MAKE_FROZEN = VARS["MPY_DIR"] + "/tools/make-frozen.py"
237237
MPY_CROSS = VARS["MPY_DIR"] + "/mpy-cross/mpy-cross"
238+
if sys.platform == "win32":
239+
MPY_CROSS += ".exe"
240+
MPY_CROSS = os.getenv("MICROPY_MPYCROSS", MPY_CROSS)
238241
MPY_TOOL = VARS["MPY_DIR"] + "/tools/mpy-tool.py"
239242

240243
# Ensure mpy-cross is built

0 commit comments

Comments
 (0)
0