Bug 1339673 - Only force re-linking during PGO builds for the compile tier. r=glandium a=NPOTB
authorChris Manchester <cmanchester@mozilla.com>
Fri, 17 Feb 2017 11:08:50 -0800
changeset 376580 d9d91d6e389ef19bd48eb5153c9e32a122a1eecc
parent 376579 f16426d0e0e7f0bb786f89a7774c304bce65a0fb
child 376581 cab6567ab42f56f4eb160a76f11ef35be33d2c0c
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium, NPOTB
bugs1339673
milestone53.0a2
Bug 1339673 - Only force re-linking during PGO builds for the compile tier. r=glandium a=NPOTB Depending on a library or program in misc during a pgo build causes extraneous rebuilding due to an added FORCE dependency, so we stop adding it except during the compile tier. MozReview-Commit-ID: 91dZFa6IRzt
config/rules.mk
--- a/config/rules.mk
+++ b/config/rules.mk
@@ -593,22 +593,24 @@ ifeq ($(OS_ARCH)_$(GNU_CC), WINNT_)
 else
 ifdef GNU_CC
 	-$(RM) *.gcda
 endif
 endif
 endif
 
 ifneq (,$(MOZ_PROFILE_GENERATE)$(MOZ_PROFILE_USE))
+ifneq (,$(filter target,$(MAKECMDGOALS)))
 ifdef GNU_CC
 # Force rebuilding libraries and programs in both passes because each
 # pass uses different object files.
 $(PROGRAM) $(SHARED_LIBRARY) $(LIBRARY): FORCE
 endif
 endif
+endif
 
 endif # NO_PROFILE_GUIDED_OPTIMIZE
 
 ##############################################
 
 checkout:
 	$(MAKE) -C $(topsrcdir) -f client.mk checkout