Commit a7b1545a authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Compile with -O3. Fixes #784.

git-svn-id: file:///svn/tokudb@3823 c7de825b-a66e-492c-adef-691d508d4ae1
parent 91437692
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# GCOV_FLAGS = -fprofile-arcs -ftest-coverage # GCOV_FLAGS = -fprofile-arcs -ftest-coverage
# PROF_FLAGS = -pg # PROF_FLAGS = -pg
OPTFLAGS = -O2 OPTFLAGS = -O3
ifeq ($(VERBOSE),2) ifeq ($(VERBOSE),2)
VERBVERBOSE=-v VERBVERBOSE=-v
...@@ -225,7 +225,7 @@ test_oexcl: test_oexcl.o toku_assert.o ...@@ -225,7 +225,7 @@ test_oexcl: test_oexcl.o toku_assert.o
checko2: checko2:
ifeq ($(OPTFLAGS),-O2) ifeq ($(OPTFLAGS),-O3)
@echo OPTFLAGS=$(OPTFLAGS) ok @echo OPTFLAGS=$(OPTFLAGS) ok
else else
@echo OPTFLAGS=$(OPTFLAGS) bad; exit 1 @echo OPTFLAGS=$(OPTFLAGS) bad; exit 1
......
...@@ -8,7 +8,7 @@ EXPORTMAP = -Wl,--version-script=export.map ...@@ -8,7 +8,7 @@ EXPORTMAP = -Wl,--version-script=export.map
VISIBILITY = -fvisibility=hidden VISIBILITY = -fvisibility=hidden
# PROF_FLAGS=-pg # PROF_FLAGS=-pg
OPTFLAGS = -O2 -finline-functions OPTFLAGS = -O3 -finline-functions
# GCOV_FLAGS = -fprofile-arcs -ftest-coverage # GCOV_FLAGS = -fprofile-arcs -ftest-coverage
CFLAGS = -W -Wall -Wextra -Werror -g3 -ggdb3 -fPIC $(OPTFLAGS) $(GCOV_FLAGS) CFLAGS = -W -Wall -Wextra -Werror -g3 -ggdb3 -fPIC $(OPTFLAGS) $(GCOV_FLAGS)
CFLAGS += -Wbad-function-cast -Wcast-align CFLAGS += -Wbad-function-cast -Wcast-align
......
# On OSX do: # On OSX do:
# make OSX=OSX # make OSX=OSX
OPTFLAGS = -O2 -finline-functions OPTFLAGS = -O3 -finline-functions
ifneq ($(GCOV),) ifneq ($(GCOV),)
GCOV_FLAGS = -fprofile-arcs -ftest-coverage GCOV_FLAGS = -fprofile-arcs -ftest-coverage
......
# On OSX do: # On OSX do:
# make OSX=OSX # make OSX=OSX
OPTFLAGS = -O2 -finline-functions OPTFLAGS = -O3 -finline-functions
LIBNAME=libtokurange LIBNAME=libtokurange
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment