open -O2 optimization

This commit is contained in:
bookug 2017-03-03 10:05:21 +08:00
parent eec13233bf
commit a350adc2cf
1 changed files with 4 additions and 4 deletions

View File

@ -43,11 +43,11 @@ CC = ccache g++
#NOTICE: -O2 is recommended, while -O3 is dangerous
#when developing, not use -O because it will disturb the normal
#routine. use it for test and release.
CFLAGS = -c -Wall -g #-fprofile-arcs -ftest-coverage #-pg
EXEFLAG = -g #-fprofile-arcs -ftest-coverage #-pg
#CFLAGS = -c -Wall -g #-fprofile-arcs -ftest-coverage #-pg
#EXEFLAG = -g #-fprofile-arcs -ftest-coverage #-pg
#-coverage
#CFLAGS = -c -Wall -O2
#EXEFLAG = -O2
CFLAGS = -c -Wall -O2
EXEFLAG = -O2
#add -lreadline -ltermcap if using readline or objs contain readline
library = -ltermcap -lreadline -L./lib -lantlr -lgcov