Bug 407600 - Compile Spidermonkey with -Os on Mac, r=bsmedberg, no approval needed, NPOTB
authorcrowder@fiverocks.com
Tue, 18 Dec 2007 17:05:48 -0800
changeset 9456 8e086a1825964bcbb5ed3700d0ff88011ef07b96
parent 9455 567a0dd3a3ee549155c68e14749383e88f3929b9
child 9457 a0853771eb6d423dffbbd6d5474df017b528d917
push id1
push userbsmedberg@mozilla.com
push dateThu, 20 Mar 2008 16:49:24 +0000
treeherdermozilla-central@61007906a1f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg, no
bugs407600
milestone1.9b3pre
Bug 407600 - Compile Spidermonkey with -Os on Mac, r=bsmedberg, no approval needed, NPOTB
js/src/config.mk
--- a/js/src/config.mk
+++ b/js/src/config.mk
@@ -112,17 +112,21 @@ ifeq ($(OS_ARCH), WINNT)
 INSTALL = nsinstall
 CP = cp
 else
 INSTALL	= $(DIST)/bin/nsinstall
 CP = cp
 endif
 
 ifdef BUILD_OPT
-OPTIMIZER  = -O
+ifdef USE_MSVC
+OPTIMIZER  = -O1
+else
+OPTIMIZER  = -Os
+endif
 DEFINES    += -UDEBUG -DNDEBUG -UDEBUG_$(USER)
 OBJDIR_TAG = _OPT
 else
 ifdef USE_MSVC
 OPTIMIZER  = -Zi
 else
 OPTIMIZER  = -g
 endif