Skip to content

Commit

Permalink
Bug 1298328 - Fix dependency between buildid.h and libxul, do not re-…
Browse files Browse the repository at this point in the history
…generate buildid.h for every developer build. r=ted

For automation builds, force buildid.h to be regenerated, and always
#include buildid.h in nsAppRunner.cpp. This will eliminate the mismatch at the
cost of re-linking libxul on every build.

For developer builds, always #include buildid.h in nsAppRunner.cpp, but do not
force buildid.h to be re-generated for incremental builds. This means we will
never have a mismatch between platform and application buildids, although
subsequent builds are no longer guaranteed to have a new buildid.

MozReview-Commit-ID: 19hvu8AQXgN

--HG--
extra : rebase_source : 181b53c2cc47526bd632a0931ba6e65fc74179ef
  • Loading branch information
chmanchester committed Mar 7, 2018
1 parent 2a879cf commit 506c15d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 26 deletions.
5 changes: 5 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,13 @@ DIST_GARBAGE = config.cache config.log config.status* config-defs.h \
.mozconfig.mk

ifndef MOZ_PROFILE_USE
# Automation builds should always have a new buildid, but for the sake of not
# re-linking libxul on every incremental build we do not enforce this for
# developer builds.
ifneq (,$(MOZ_AUTOMATION)$(MOZ_BUILD_DATE))
buildid.h source-repo.h: FORCE
endif
endif

ifdef JS_STANDALONE
configure_dir = $(topsrcdir)/js/src
Expand Down
21 changes: 0 additions & 21 deletions toolkit/xre/Makefile.in

This file was deleted.

5 changes: 0 additions & 5 deletions toolkit/xre/nsAppRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,7 @@ nsString gAbsoluteArgv0Path;
#include <fontconfig/fontconfig.h>
#endif
#include "BinaryPath.h"
#ifndef MOZ_BUILDID
// See comment in Makefile.in why we want to avoid including buildid.h.
// Still include it when MOZ_BUILDID is not set, which can happen with some
// build backends.
#include "buildid.h"
#endif

#ifdef MOZ_LINKER
extern "C" MFBT_API bool IsSignalHandlingBroken();
Expand Down

0 comments on commit 506c15d

Please sign in to comment.