mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix Windows/msys2 build by replicating flags from make.bat
This commit is contained in:
parent
492dfebd15
commit
60eec9fd4d
7
Makefile
7
Makefile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user