From 60eec9fd4dc38a0dc3182ab20493e46d914843fc Mon Sep 17 00:00:00 2001 From: Nicolas Sauzede Date: Fri, 3 Jan 2020 08:53:41 +0100 Subject: [PATCH] fix Windows/msys2 build by replicating flags from make.bat --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 80ef5f4668..25b60bc97a 100644 --- a/Makefile +++ b/Makefile @@ -39,9 +39,10 @@ endif all: latest_vc latest_tcc ifdef WIN32 - $(CC) -std=c99 -w -o v0.exe $(TMPVC)/$(VCFILE) $(LDFLAGS) - ./v0.exe -o v.exe v.v - rm -f v0.exe + $(CC) -std=c99 -municode -w -o v2.exe $(TMPVC)/$(VCFILE) $(LDFLAGS) + ./v2.exe -o v3.exe v.v + ./v3.exe -o v.exe -prod v.v + rm -f v2.exe v3.exe else $(CC) -std=gnu11 -w -o v $(TMPVC)/$(VCFILE) $(LDFLAGS) -lm ifdef ANDROID