perf: open O2 optimization
This commit is contained in:
parent
a9645c7ec0
commit
50972de85d
8
makefile
8
makefile
|
@ -44,11 +44,11 @@ CC = g++
|
||||||
#NOTICE: -O2 is recommended, while -O3 is dangerous
|
#NOTICE: -O2 is recommended, while -O3 is dangerous
|
||||||
#when developing, not use -O because it will disturb the normal
|
#when developing, not use -O because it will disturb the normal
|
||||||
#routine. use it for test and release.
|
#routine. use it for test and release.
|
||||||
CFLAGS = -c -Wall -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
|
#EXEFLAG = -g -pthread #-fprofile-arcs -ftest-coverage #-pg
|
||||||
#-coverage
|
#-coverage
|
||||||
#CFLAGS = -c -Wall -O2 -pthread
|
CFLAGS = -c -Wall -O2 -pthread
|
||||||
#EXEFLAG = -O2 -pthread
|
EXEFLAG = -O2 -pthread
|
||||||
|
|
||||||
#add -lreadline -ltermcap if using readline or objs contain readline
|
#add -lreadline -ltermcap if using readline or objs contain readline
|
||||||
library = -ltermcap -lreadline -L./lib -lantlr -lgcov
|
library = -ltermcap -lreadline -L./lib -lantlr -lgcov
|
||||||
|
|
Loading…
Reference in New Issue