Bug 465592 - To enable PGO on Thunderbird a module in the Mozilla core needs to have PGO disabled; r=ted.mielczarek
authorChris Bishop <chris.bugzilla@gmail.com>
Sat, 06 Dec 2008 16:34:59 +0100
changeset 22429 fc579917e321374433e182aae2d45a33af4673dc
parent 22428 ec95b93b3ae8310b551a3649419910f40113f66e
child 22430 7604a342ad4b94d92145522c52b74483de3c12e2
push idunknown
push userunknown
push dateunknown
reviewersted.mielczarek
bugs465592
milestone1.9.2a1pre
Bug 465592 - To enable PGO on Thunderbird a module in the Mozilla core needs to have PGO disabled; r=ted.mielczarek
modules/lcms/src/Makefile.in
--- a/modules/lcms/src/Makefile.in
+++ b/modules/lcms/src/Makefile.in
@@ -57,16 +57,21 @@ endif
 
 ifeq (,$(filter-out WINNT WINCE OS2,$(OS_ARCH)))
 DEFINES	+= -DLCMS_DLL=1 -DLCMS_DLL_BUILD=1
 else
 VISIBILITY_FLAGS =
 endif
 endif
 
+# Disable PGO for this module in non-libxul builds, where it breaks.
+ifndef MOZ_ENABLE_LIBXUL
+NO_PROFILE_GUIDED_OPTIMIZE = 1
+endif
+
 # LCMS is on the critical path, so force it O2 on all platforms
 MODULE_OPTIMIZE_FLAGS=-O2
 
 REQUIRES	= $(LCMS_REQUIRES) \
 		  $(NULL)
 
 CSRCS = cmscnvrt.c cmserr.c cmsgamma.c cmsgmt.c cmsintrp.c cmsio1.c \
 	cmslut.c cmsmatsh.c cmsmtrx.c cmspack.c cmspcs.c cmswtpnt.c \