summaryrefslogtreecommitdiff
path: root/mpy-cross/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mpy-cross/Makefile')
-rw-r--r--mpy-cross/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/mpy-cross/Makefile b/mpy-cross/Makefile
index 7764d5bef..c9b6cca0f 100644
--- a/mpy-cross/Makefile
+++ b/mpy-cross/Makefile
@@ -14,7 +14,13 @@ endif
include ../py/mkenv.mk
# define main target
+
+ifeq ($(OS),Windows_NT)
+# Detect a MINGW32 build, and change the name of the final executable.
+PROG = mpy-cross.exe
+else
PROG = mpy-cross
+endif
# qstr definitions (must come before including py.mk)
QSTR_DEFS = qstrdefsport.h