Skip to content

Commit

Permalink
Bug 1947164 - Fix pruning of build-id rebuild r=glandium
Browse files Browse the repository at this point in the history
Adjust to internal changes so that buildid.h and source-repo.h are
generated only once (and not twice - or never) upon nop build.

Differential Revision: https://phabricator.services.mozilla.com/D237591
  • Loading branch information
serge-sans-paille committed Feb 19, 2025
1 parent 14ec5d7 commit 68d1a8a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ endif
include $(topsrcdir)/config/config.mk

ifneq (mobile/android,$(MOZ_BUILD_APP))
# We only want to generate buildid.h once, during the export phase.
ifeq ($(MAKECMDGOALS),buildid.h)
$(MDDEPDIR)/buildid.h.stub: FORCE
endif
ifeq ($(MAKECMDGOALS),source-repo.h)
$(MDDEPDIR)/source-repo.h.stub: FORCE
# We only want to generate buildid.h once, during the (recurse) export phase.
# faster make build the files explicitly so also match thoses
ifneq ($(filter $(MAKECMDGOALS),recurse_export buildid.h source-repo.h),)
$(MDDEPDIR)/buildid.h.stub $(MDDEPDIR)/source-repo.h.stub: FORCE
endif
endif
source-repo.h: $(MDDEPDIR)/source-repo.h.stub
Expand Down

0 comments on commit 68d1a8a

Please sign in to comment.