perf: open O2 optimization

This commit is contained in:
bookug 2017-07-17 22:59:12 +08:00
parent a9645c7ec0
commit 50972de85d
1 changed files with 4 additions and 4 deletions

View File

@ -44,11 +44,11 @@ CC = 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 -pthread #-fprofile-arcs -ftest-coverage #-pg
EXEFLAG = -g -pthread #-fprofile-arcs -ftest-coverage #-pg
#CFLAGS = -c -Wall -g -pthread #-fprofile-arcs -ftest-coverage #-pg
#EXEFLAG = -g -pthread #-fprofile-arcs -ftest-coverage #-pg
#-coverage
#CFLAGS = -c -Wall -O2 -pthread
#EXEFLAG = -O2 -pthread
CFLAGS = -c -Wall -O2 -pthread
EXEFLAG = -O2 -pthread
#add -lreadline -ltermcap if using readline or objs contain readline
library = -ltermcap -lreadline -L./lib -lantlr -lgcov