docs: use O2 in makefile

This commit is contained in:
bookug 2017-07-16 14:32:38 +08:00
parent d0bf0ac6a0
commit 1fde76262f
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 -O2 -pthread -std=c++11
#EXEFLAG = -O2 -pthread -std=c++11
CFLAGS = -c -Wall -O2 -pthread -std=c++11
EXEFLAG = -O2 -pthread -std=c++11
#-coverage
CFLAGS = -c -Wall -pthread -g -std=c++11
EXEFLAG = -pthread -g -std=c++11
#CFLAGS = -c -Wall -pthread -g -std=c++11
#EXEFLAG = -pthread -g -std=c++11
#add -lreadline -ltermcap if using readline or objs contain readline
library = -ltermcap -lreadline -L./lib -L/usr/local/lib -lantlr -lgcov -lboost_filesystem -lboost_system -lboost_regex -lpthread -I/usr/local/include/boost