зеркало из https://github.com/mozilla/gecko-dev.git
Bug 420906. support for custom options for jsinterp.c when compiling the browser. Patch by Ted Mielczarek. r=bsmedberg
This commit is contained in:
Родитель
67dfe02a98
Коммит
71acdaa6b3
|
@ -51,6 +51,8 @@ GRE_MODULE = 1
|
|||
|
||||
ifdef GNU_CC
|
||||
MODULE_OPTIMIZE_FLAGS = -Os -fstrict-aliasing
|
||||
# Special optimization flags for jsinterp.c
|
||||
INTERP_OPTIMIZER = -O3 -fstrict-aliasing
|
||||
else
|
||||
ifeq ($(OS_ARCH),SunOS)
|
||||
MODULE_OPTIMIZE_FLAGS = -O
|
||||
|
@ -337,6 +339,11 @@ LDFLAGS += -lposix4 -ldl -lnsl -lsocket
|
|||
endif
|
||||
endif
|
||||
|
||||
# Allow building jsinterp.c with special optimization flags
|
||||
ifdef INTERP_OPTIMIZER
|
||||
jsinterp.$(OBJ_SUFFIX): MODULE_OPTIMIZE_FLAGS=$(INTERP_OPTIMIZER)
|
||||
endif
|
||||
|
||||
ifeq ($(OS_ARCH),IRIX)
|
||||
ifndef GNU_CC
|
||||
_COMPILE_CFLAGS = $(patsubst -O%,-O1,$(COMPILE_CFLAGS))
|
||||
|
|
Загрузка…
Ссылка в новой задаче