fix Windows/msys2 build by replicating flags from make.bat

pull/3313/head
Nicolas Sauzede 2020-01-03 08:53:41 +01:00 committed by Alexander Medvednikov
parent 492dfebd15
commit 60eec9fd4d
1 changed files with 4 additions and 3 deletions

View File

@ -39,9 +39,10 @@ endif
all: latest_vc latest_tcc all: latest_vc latest_tcc
ifdef WIN32 ifdef WIN32
$(CC) -std=c99 -w -o v0.exe $(TMPVC)/$(VCFILE) $(LDFLAGS) $(CC) -std=c99 -municode -w -o v2.exe $(TMPVC)/$(VCFILE) $(LDFLAGS)
./v0.exe -o v.exe v.v ./v2.exe -o v3.exe v.v
rm -f v0.exe ./v3.exe -o v.exe -prod v.v
rm -f v2.exe v3.exe
else else
$(CC) -std=gnu11 -w -o v $(TMPVC)/$(VCFILE) $(LDFLAGS) -lm $(CC) -std=gnu11 -w -o v $(TMPVC)/$(VCFILE) $(LDFLAGS) -lm
ifdef ANDROID ifdef ANDROID