#369: bustage fix for opt builds

This commit is contained in:
Cameron Kaiser 2020-01-26 12:01:10 -08:00
parent 35584e5e65
commit cc2e336b2f
1 changed files with 8 additions and 5 deletions

View File

@ -88,11 +88,14 @@ endif
OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK $(DARWIN_SDK_CFLAGS) OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK $(DARWIN_SDK_CFLAGS)
ifdef BUILD_OPT ifdef BUILD_OPT
ifeq (11,$(ALLOW_OPT_CODE_SIZE)$(OPT_CODE_SIZE))
OPTIMIZER = -Oz # TenFourFox overrides optimization settings; let it.
else #ifeq (11,$(ALLOW_OPT_CODE_SIZE)$(OPT_CODE_SIZE))
OPTIMIZER = -O2 # OPTIMIZER = -Oz
endif #else
# OPTIMIZER = -O2
#endif
ifdef MOZ_DEBUG_SYMBOLS ifdef MOZ_DEBUG_SYMBOLS
ifdef MOZ_DEBUG_FLAGS ifdef MOZ_DEBUG_FLAGS
OPTIMIZER += $(MOZ_DEBUG_FLAGS) OPTIMIZER += $(MOZ_DEBUG_FLAGS)