From 049d78d1b9df6ceeeaa1bd113cf89af49f9bfd0b Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Tue, 3 Nov 2015 10:31:32 -0600 Subject: [PATCH] Disable zealous GC in release builds. --- makefile.cargo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile.cargo b/makefile.cargo index 64524a1a10..5f81288f15 100644 --- a/makefile.cargo +++ b/makefile.cargo @@ -25,7 +25,7 @@ AR ?= ar endif ifneq (,$(CARGO_FEATURE_DEBUGMOZJS)) - CONFIGURE_FLAGS += --enable-debug=-g --enable-optimize=-O0 + CONFIGURE_FLAGS += --enable-debug=-g --enable-optimize=-O0 --enable-gczeal endif ifeq (windows,$(findstring windows,$(TARGET))) @@ -48,6 +48,6 @@ SRC_DIR = $(shell pwd) all: cd $(OUT_DIR) && \ MOZ_TOOLS="$(MOZ_TOOLS)" CC="$(CC)" CPP="$(CPP)" CXX="$(CXX)" AR="$(AR)" \ - $(SRC_DIR)/mozjs/js/src/configure --enable-gczeal $(strip $(CONFIGURE_FLAGS)) + $(SRC_DIR)/mozjs/js/src/configure $(strip $(CONFIGURE_FLAGS)) cd $(OUT_DIR) && make -f Makefile -j$(NUM_JOBS)