Bug 1339673 - Only force re-linking during PGO builds for the compile tier. r=glandium

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

--HG--
extra : rebase_source : 9994a5c05865c81d95ea075c753e270d3c223570
This commit is contained in:
Chris Manchester 2017-02-17 11:08:50 -08:00
parent e2e1a84cae
commit 69554aaee0

View File

@ -601,12 +601,14 @@ 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