1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

makefile: remove -O2

This commit is contained in:
Alexander Medvednikov 2019-10-31 22:30:35 +03:00
parent ae696e7ccb
commit 01dba479a4

View File

@ -19,15 +19,15 @@ endif
all: fresh_vc fresh_tcc
ifdef WIN32
$(CC) -std=c99 -w -o v0.exe vc/v_win.c $(LDFLAGS)
./v0.exe -prod -o v.exe v.v
./v0.exe -o v.exe v.v
rm -f v0.exe
else
$(CC) -O2 -std=gnu11 -w -o v vc/v.c $(LDFLAGS) -lm
$(CC) -std=gnu11 -w -o v vc/v.c $(LDFLAGS) -lm
@(VC_V=`./v version | cut -f 3 -d " "`; \
V_V=`git rev-parse --short HEAD`; \
if [ $$VC_V != $$V_V ]; then \
echo "Self rebuild ($$VC_V => $$V_V)"; \
./v -prod -o v v.v; \
./v -o v v.v; \
fi)
endif
rm -rf vc/