Skip to content

Commit

Permalink
Disable zealous GC in release builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Jeffrey committed Nov 3, 2015
1 parent 74e7e95 commit 049d78d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions makefile.cargo
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand All @@ -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)

0 comments on commit 049d78d

Please sign in to comment.