Bug 1337986 - Build dump_syms during export so it's available during compile. draft
authorChris Manchester <cmanchester@mozilla.com>
Mon, 03 Apr 2017 10:32:32 -0700
changeset 555115 c145d1f298573d88c6b1de7f28405309f5183e83
parent 555114 0ae387b83e1a88f007d948e76319365dddbbd7e8
child 555116 244bf79cf4923c64184793334379e9487c5ef7d1
child 555133 257bf259528f234ac9fba73a30a624bb2259c387
push id52161
push userbmo:cmanchester@mozilla.com
push dateMon, 03 Apr 2017 17:35:35 +0000
bugs1337986
milestone55.0a1
Bug 1337986 - Build dump_syms during export so it's available during compile. This moves building dump_syms to the export tier so it can be used to dump symbols during the compile tier. MozReview-Commit-ID: CXlmMVMhzmf
config/recurse.mk
--- a/config/recurse.mk
+++ b/config/recurse.mk
@@ -92,16 +92,21 @@ ifeq ($(CURRENT_TIER),export)
 # subdirectory traversal needs to happen after building nsinstall in config, which
 # is done with the config/host target. Note the config/host target only exists if
 # nsinstall is actually built, which it is not on Windows, because we use
 # nsinstall.py there.
 ifdef COMPILE_ENVIRONMENT
 ifneq (,$(filter config/host, $(compile_targets)))
 $(addsuffix /$(CURRENT_TIER),$(CURRENT_DIRS)): config/host
 endif
+# We need dump_syms during compile, so build it during export by making it depend
+# on an export target.
+ifneq (,$(filter toolkit/crashreporter/google-breakpad/src/tools/%/dump_syms/host,$(compile_targets)))
+$(addsuffix /$(CURRENT_TIER),$(lastword $(CURRENT_DIRS))): $(filter toolkit/crashreporter/google-breakpad/src/tools/%/dump_syms/host,$(compile_targets))
+endif
 endif
 endif
 
 endif # ifeq ($(CURRENT_TIER),compile)
 
 else
 
 # Don't recurse if MAKELEVEL is NO_RECURSE_MAKELEVEL as defined above