From 2798e59e7fa008795a91c905910e1d4138d4b592 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 29 Oct 2019 12:42:20 +0300 Subject: [PATCH] makefile: build V with -O2 --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 423e869344..8536b2288f 100644 --- a/Makefile +++ b/Makefile @@ -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 -o v.exe v.v + ./v0.exe -prod -o v.exe v.v rm -f v0.exe else - $(CC) -std=gnu11 -w -o v vc/v.c $(LDFLAGS) -lm + $(CC) -O2 -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 -o v v.v; \ + ./v -prod -o v v.v; \ fi) endif rm -rf vc/