Bug 850153: Try harder to avoid blowing out the command line limit. r=gps

This commit is contained in:
Kyle Huey 2013-03-12 13:55:20 -07:00
parent 3ccd33f2b1
commit 1ef10ebb37

View File

@ -99,8 +99,8 @@ endif
# XXXkhuey this is a terrible hack to avoid blowing out the command line
ifneq (,$(filter-out all chrome default export realchrome tools clean clobber clobber_all distclean realclean,$(MAKECMDGOALS)))
$(shell echo "$(addsuffix .pp,$(binding_header_files))" > pp.list)
$(shell echo "$(addsuffix .pp,$(binding_cpp_files))" >> pp.list)
$(shell echo "$(addsuffix .pp,$(binding_header_files))" > hpp.list)
$(shell echo "$(addsuffix .pp,$(binding_cpp_files))" > cpp.list)
# The script mddepend.pl checks the dependencies and writes to stdout
# one rule to force out-of-date objects. For example,
@ -108,8 +108,10 @@ $(shell echo "$(addsuffix .pp,$(binding_cpp_files))" >> pp.list)
# The script has an advantage over including the *.pp files directly
# because it handles the case when header files are removed from the build.
# 'make' would complain that there is no way to build missing headers.
ALL_PP_RESULTS = $(shell cat pp.list | $(PERL) $(BUILD_TOOLS)/mddepend.pl)
$(eval $(ALL_PP_RESULTS))
HPP_PP_RESULTS = $(shell cat hpp.list | $(PERL) $(BUILD_TOOLS)/mddepend.pl)
$(eval $(HPP_PP_RESULTS))
CPP_PP_RESULTS = $(shell cat cpp.list | $(PERL) $(BUILD_TOOLS)/mddepend.pl)
$(eval $(CPP_PP_RESULTS))
endif