aboutsummaryrefslogtreecommitdiff
path: root/windows/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'windows/Makefile')
-rw-r--r--windows/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/windows/Makefile b/windows/Makefile
index ca3c08c1f..10c5f2ba7 100644
--- a/windows/Makefile
+++ b/windows/Makefile
@@ -49,6 +49,10 @@ CFLAGS_MOD += -DMICROPY_USE_READLINE=2
LDFLAGS_MOD += -lreadline
endif
+ifeq ($(CROSS_COMPILE),x86_64-w64-mingw32-)
+CFLAGS_MOD += -DMICROPY_NLR_SETJMP=1
+endif
+
LIB += -lws2_32
include ../py/mkrules.mk