Bug 800785 - unnecessary PGO for js shell. r=ted
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Tue, 23 Oct 2012 16:42:19 +0900
changeset 123567 602add2d02e6fcf9913acfac62eb0d24970c37c6
parent 123566 089e5412a83b43b595a0f150ddcfc6b2100c9d3c
child 123568 60378fae4e94b39e96841cc6c44fcd2a7cc6b591
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs800785
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 800785 - unnecessary PGO for js shell. r=ted
js/src/shell/Makefile.in
--- a/js/src/shell/Makefile.in
+++ b/js/src/shell/Makefile.in
@@ -13,16 +13,23 @@ include $(DEPTH)/config/autoconf.mk
 
 PROGRAM         = js$(BIN_SUFFIX)
 CPPSRCS		= \
   js.cpp \
   jsoptparse.cpp \
   jsheaptools.cpp \
   $(NULL)
 
+ifdef _MSC_VER
+# unnecessary PGO for js shell.  But gcc cannot turn off pgo because it is
+# necessary to link PGO lib on gcc when a object/static lib are compiled
+# for PGO.
+NO_PROFILE_GUIDED_OPTIMIZE := 1
+endif
+
 DEFINES         += -DEXPORT_JS_API
 # Building against js_static requires that we declare mfbt sybols "exported"
 # on its behalf.
 DEFINES         += -DIMPL_MFBT
 
 LIBS      = $(NSPR_LIBS) $(EDITLINE_LIBS) $(DEPTH)/$(LIB_PREFIX)js_static.$(LIB_SUFFIX) $(MOZ_ZLIB_LIBS)
 ifdef MOZ_NATIVE_FFI
 EXTRA_LIBS += $(MOZ_FFI_LIBS)