Changes

Jump to: navigation, search

PGO Related Bugs/Patches

860 bytes added, 12:59, 6 December 2008
New page: This patch disables the lcms (local color management system) from being optimized if it is not linked into the xul libraray.<br/> <pre>diff --git a/modules/lcms/src/Makefile.in b/modules/...
This patch disables the lcms (local color management system) from being optimized if it is not linked into the xul libraray.<br/>

<pre>diff --git a/modules/lcms/src/Makefile.in b/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 \
</pre>
1
edit

Navigation menu