mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 932618 - Use NO_PROFILE_GUIDED_OPTIMIZE to disable PGO for individual files. r=gps
This commit is contained in:
parent
bdf32e04c8
commit
91865c8cd6
@ -397,10 +397,10 @@ NO_PROFILE_GUIDED_OPTIMIZE = 1
|
||||
endif
|
||||
|
||||
# Enable profile-based feedback
|
||||
ifndef NO_PROFILE_GUIDED_OPTIMIZE
|
||||
ifneq (1,$(NO_PROFILE_GUIDED_OPTIMIZE))
|
||||
ifdef MOZ_PROFILE_GENERATE
|
||||
OS_CFLAGS += $(PROFILE_GEN_CFLAGS)
|
||||
OS_CXXFLAGS += $(PROFILE_GEN_CFLAGS)
|
||||
OS_CFLAGS += $(if $(filter $(notdir $<),$(notdir $(NO_PROFILE_GUIDED_OPTIMIZE))),,$(PROFILE_GEN_CFLAGS))
|
||||
OS_CXXFLAGS += $(if $(filter $(notdir $<),$(notdir $(NO_PROFILE_GUIDED_OPTIMIZE))),,$(PROFILE_GEN_CFLAGS))
|
||||
OS_LDFLAGS += $(PROFILE_GEN_LDFLAGS)
|
||||
ifeq (WINNT,$(OS_ARCH))
|
||||
AR_FLAGS += -LTCG
|
||||
@ -408,8 +408,8 @@ endif
|
||||
endif # MOZ_PROFILE_GENERATE
|
||||
|
||||
ifdef MOZ_PROFILE_USE
|
||||
OS_CFLAGS += $(PROFILE_USE_CFLAGS)
|
||||
OS_CXXFLAGS += $(PROFILE_USE_CFLAGS)
|
||||
OS_CFLAGS += $(if $(filter $(notdir $<),$(notdir $(NO_PROFILE_GUIDED_OPTIMIZE))),,$(PROFILE_USE_CFLAGS))
|
||||
OS_CXXFLAGS += $(if $(filter $(notdir $<),$(notdir $(NO_PROFILE_GUIDED_OPTIMIZE))),,$(PROFILE_USE_CFLAGS))
|
||||
OS_LDFLAGS += $(PROFILE_USE_LDFLAGS)
|
||||
ifeq (WINNT,$(OS_ARCH))
|
||||
AR_FLAGS += -LTCG
|
||||
|
@ -38,7 +38,9 @@ CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PIXMAN_CFLAGS) $(TK_CFLAGS)
|
||||
ifdef _MSC_VER
|
||||
ifeq ($(CPU_ARCH),x86_64)
|
||||
# Workaround compiler bug (Bug 795594)
|
||||
LayerTreeInvalidation.$(OBJ_SUFFIX): CXXFLAGS += -GL-
|
||||
Layers.$(OBJ_SUFFIX): CXXFLAGS += -GL-
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := \
|
||||
LayerTreeInvalidation.cpp \
|
||||
Layers.cpp \
|
||||
$(NULL)
|
||||
endif
|
||||
endif
|
||||
|
@ -414,14 +414,18 @@ CFLAGS += -fp:precise
|
||||
|
||||
ifeq ($(CPU_ARCH),x86)
|
||||
# Workaround compiler bug on PGO (Bug 721284)
|
||||
MonoIC.$(OBJ_SUFFIX): CXXFLAGS += -GL-
|
||||
Compiler.$(OBJ_SUFFIX): CXXFLAGS += -GL-
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := \
|
||||
MonoIC.cpp \
|
||||
Compiler.cpp \
|
||||
$(NULL)
|
||||
# Ditto (Bug 772303)
|
||||
RegExp.$(OBJ_SUFFIX): CXXFLAGS += -GL-
|
||||
NO_PROFILE_GUIDED_OPTIMIZE += RegExp.cpp
|
||||
endif
|
||||
# Ditto (Bug 810661)
|
||||
ifeq ($(CPU_ARCH),x86_64)
|
||||
CTypes.$(OBJ_SUFFIX): CXXFLAGS += -GL-
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := \
|
||||
CTypes.cpp \
|
||||
$(NULL)
|
||||
endif
|
||||
endif # _MSC_VER
|
||||
|
||||
|
@ -397,10 +397,10 @@ NO_PROFILE_GUIDED_OPTIMIZE = 1
|
||||
endif
|
||||
|
||||
# Enable profile-based feedback
|
||||
ifndef NO_PROFILE_GUIDED_OPTIMIZE
|
||||
ifneq (1,$(NO_PROFILE_GUIDED_OPTIMIZE))
|
||||
ifdef MOZ_PROFILE_GENERATE
|
||||
OS_CFLAGS += $(PROFILE_GEN_CFLAGS)
|
||||
OS_CXXFLAGS += $(PROFILE_GEN_CFLAGS)
|
||||
OS_CFLAGS += $(if $(filter $(notdir $<),$(notdir $(NO_PROFILE_GUIDED_OPTIMIZE))),,$(PROFILE_GEN_CFLAGS))
|
||||
OS_CXXFLAGS += $(if $(filter $(notdir $<),$(notdir $(NO_PROFILE_GUIDED_OPTIMIZE))),,$(PROFILE_GEN_CFLAGS))
|
||||
OS_LDFLAGS += $(PROFILE_GEN_LDFLAGS)
|
||||
ifeq (WINNT,$(OS_ARCH))
|
||||
AR_FLAGS += -LTCG
|
||||
@ -408,8 +408,8 @@ endif
|
||||
endif # MOZ_PROFILE_GENERATE
|
||||
|
||||
ifdef MOZ_PROFILE_USE
|
||||
OS_CFLAGS += $(PROFILE_USE_CFLAGS)
|
||||
OS_CXXFLAGS += $(PROFILE_USE_CFLAGS)
|
||||
OS_CFLAGS += $(if $(filter $(notdir $<),$(notdir $(NO_PROFILE_GUIDED_OPTIMIZE))),,$(PROFILE_USE_CFLAGS))
|
||||
OS_CXXFLAGS += $(if $(filter $(notdir $<),$(notdir $(NO_PROFILE_GUIDED_OPTIMIZE))),,$(PROFILE_USE_CFLAGS))
|
||||
OS_LDFLAGS += $(PROFILE_USE_LDFLAGS)
|
||||
ifeq (WINNT,$(OS_ARCH))
|
||||
AR_FLAGS += -LTCG
|
||||
|
@ -407,7 +407,7 @@ ifdef VPX_NEED_OBJ_INT_EXTRACT
|
||||
|
||||
# only for MSVC
|
||||
ifdef _MSC_VER
|
||||
asm_com_offsets.$(OBJ_SUFFIX): CFLAGS += -GL-
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := asm_com_offsets.c
|
||||
endif
|
||||
|
||||
asm_com_offsets.asm: asm_com_offsets.$(OBJ_SUFFIX) $(HOST_PROGRAM)
|
||||
@ -421,7 +421,7 @@ OBJS := $(filter-out asm_com_offsets.$(OBJ_SUFFIX),$(OBJS))
|
||||
ifdef MOZ_VP8_ENCODER
|
||||
|
||||
ifdef _MSC_VER
|
||||
asm_enc_offsets.$(OBJ_SUFFIX): CFLAGS += -GL-
|
||||
NO_PROFILE_GUIDED_OPTIMIZE += asm_enc_offsets.c
|
||||
endif
|
||||
|
||||
asm_enc_offsets.asm: asm_enc_offsets.$(OBJ_SUFFIX) $(HOST_PROGRAM)
|
||||
|
@ -12,7 +12,7 @@ LOCAL_INCLUDES += -I$(srcdir)/../../../../xptinfo/src
|
||||
ifneq ($(TARGET_CPU),x86_64)
|
||||
ifndef GNU_CXX
|
||||
# FIXME: bug 413019
|
||||
OS_COMPILE_CXXFLAGS += -GL-
|
||||
NO_PROFILE_GUIDED_OPTIMIZE = 1
|
||||
endif #!GNU_CXX
|
||||
endif #!x86_64
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user