Skip to content

Commit

Permalink
Removed the explicit -fomit-frame-pointer flag from release mode builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
srh committed Dec 19, 2012
1 parent ee0d4d7 commit 2c68f62
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -562,18 +562,16 @@ ifeq ($(KEEP_INLINE),1)
RT_CXXFLAGS+=-fkeep-inline-functions
endif

else
else # ifeq ($(DEBUG),1)
# use -fno-strict-aliasing to not break things
# march=native used to break the serializer
RT_CXXFLAGS+=-O3 -DNDEBUG -fno-strict-aliasing # -march=native
# TODO: remove this once memcached is added back in the release (disables memcached from showing up in the admin CLI help or tab-completion)
RT_CXXFLAGS+=-DNO_MEMCACHE
ifeq ($(NO_OMIT_FRAME_POINTER),1)
RT_CXXFLAGS+=-fno-omit-frame-pointer
else
RT_CXXFLAGS+=-fomit-frame-pointer
endif
endif
endif # ifeq ($(DEBUG),1)

ifeq ($(DISABLE_BREAKPOINTS),1)
RT_CXXFLAGS+=-DDISABLE_BREAKPOINTS
Expand Down

0 comments on commit 2c68f62

Please sign in to comment.