Bug 517417 - access violation: while compiling xulrunner tries to test for Mercurial repositories above its build dir. r=ted

This commit is contained in:
Jory A. Pratt 2009-10-25 10:25:34 +01:00
parent 52cb1d3edc
commit 4742adb30e
3 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ GRE_BUILDID = $(shell $(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(LIBX
DEFINES += -DGRE_MILESTONE=$(GRE_MILESTONE) -DGRE_BUILDID=$(GRE_BUILDID)
SOURCE_STAMP := $(shell cd $(topsrcdir) ; hg identify 2>/dev/null | cut -f1 -d' ')
SOURCE_STAMP := $(shell cd $(topsrcdir) ; hg identify . 2>/dev/null | cut -f1 -d' ')
ifdef SOURCE_STAMP
DEFINES += -DMOZ_SOURCE_STAMP="$(SOURCE_STAMP)"
endif

View File

@ -58,7 +58,7 @@ DEFINES += \
-DCPPFLAGS="$(CPPFLAGS)" \
$(NULL)
CHANGESET := $(shell cd $(topsrcdir) && hg identify 2>/dev/null | cut -f1 -d' ')
CHANGESET := $(shell cd $(topsrcdir) && hg identify . 2>/dev/null | cut -f1 -d' ')
ifdef CHANGESET
DEFINES += -DSOURCE_CHANGESET="$(CHANGESET)"
endif

View File

@ -220,7 +220,7 @@ DEFINES += -DHAVE_USR_LIB64_DIR
endif
endif
SOURCE_STAMP := $(shell cd $(topsrcdir) && hg identify 2>/dev/null | cut -f1 -d' ')
SOURCE_STAMP := $(shell cd $(topsrcdir) && hg identify . 2>/dev/null | cut -f1 -d' ')
# strip a trailing slash from the repo URL because it's not always present,
# and we want to construct a working URL in buildconfig.html
# make+shell+sed = awful