Bug 524422 Disable PGO for sqlite3 with Sun Studio on Solaris r=ted.mielczarek
authorGinn Chen <ginn.chen@sun.com>
Mon, 02 Nov 2009 17:20:21 +0800
changeset 34467 bf9dbda3a129143dba1f7194aaeed92da12f2750
parent 34466 c4b29c956c779f9c5438af1008da2677314a85f9
child 34468 00924c08d33d9fb32d1fdf9d7a44514169c4e1e9
push id10061
push userginn.chen@sun.com
push dateMon, 02 Nov 2009 09:22:24 +0000
treeherdermozilla-central@bf9dbda3a129 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted.mielczarek
bugs524422
milestone1.9.3a1pre
Bug 524422 Disable PGO for sqlite3 with Sun Studio on Solaris r=ted.mielczarek
db/sqlite3/src/Makefile.in
--- a/db/sqlite3/src/Makefile.in
+++ b/db/sqlite3/src/Makefile.in
@@ -111,16 +111,21 @@ ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
 DEFINES += -DSQLITE_ENABLE_LOCKING_STYLE=1
 endif
 
 # Turn on SQLite's assertions in debug builds.
 ifdef MOZ_DEBUG
 DEFINES += -DSQLITE_DEBUG=1
 endif
 
+# disable PGO for Sun Studio
+ifdef SOLARIS_SUNPRO_CC
+NO_PROFILE_GUIDED_OPTIMIZE = 1
+endif
+
 ifeq ($(OS_ARCH),OS2)
 ifdef MOZ_OS2_HIGH_MEMORY
 DEFINES += -DOS2_HIGH_MEMORY
 endif
 endif
 
 include $(topsrcdir)/config/rules.mk