зеркало из https://github.com/mozilla/gecko-dev.git
Bug 590179. Use -fomit-frame-pointer when building opt builds on mac. r=ted, a=beltzner
This commit is contained in:
Родитель
07cfc2f55a
Коммит
14a38ac417
|
@ -2034,7 +2034,7 @@ case "$target" in
|
|||
*-darwin*)
|
||||
MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
|
||||
MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
|
||||
MOZ_OPTIMIZE_FLAGS="-O3"
|
||||
MOZ_OPTIMIZE_FLAGS="-O3 -fomit-frame-pointer"
|
||||
_PEDANTIC=
|
||||
CFLAGS="$CFLAGS -fpascal-strings -fno-common"
|
||||
CXXFLAGS="$CXXFLAGS -fpascal-strings -fno-common"
|
||||
|
|
|
@ -1727,7 +1727,7 @@ case "$target" in
|
|||
*-darwin*)
|
||||
MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
|
||||
MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
|
||||
MOZ_OPTIMIZE_FLAGS="-O3"
|
||||
MOZ_OPTIMIZE_FLAGS="-O3 -fomit-frame-pointer"
|
||||
_PEDANTIC=
|
||||
CFLAGS="$CFLAGS -fpascal-strings -fno-common"
|
||||
CXXFLAGS="$CXXFLAGS -fpascal-strings -fno-common"
|
||||
|
|
|
@ -64,6 +64,18 @@ NO_PROFILE_GUIDED_OPTIMIZE = 1
|
|||
endif
|
||||
endif
|
||||
|
||||
ifeq (Darwin,$(OS_ARCH))
|
||||
ifeq (86,$(findstring 86,$(OS_TEST)))
|
||||
ifneq (x86_64,$(OS_TEST))
|
||||
# If we compile xptcinvoke_unixish_x86.cpp with -fomit-frame-pointer
|
||||
# we end up crashing on startup, presumably because of the %esp munging we do
|
||||
# when KEEP_STACK_16_BYTE_ALIGNED. So let's not use that flag here.
|
||||
# NOTE: MODULE_OPTIMIZE_FLAGS must be set before including config.mk
|
||||
MODULE_OPTIMIZE_FLAGS=-O3
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/config.mk
|
||||
|
||||
######################################################################
|
||||
|
|
Загрузка…
Ссылка в новой задаче