Bug 468041: List the object files that depend on javascript-trace.h explicitly. r=bsmedberg
authorJim Blandy <jimb@mozilla.org>
Tue, 16 Dec 2008 11:50:21 -0800
changeset 22854 5748936939f4ba914ae1739dc23364e37448baa6
parent 22853 256fbfcf4f96bf3d84474dae4f222053c182c9e4
child 22856 214c605bfb64efa72328c4baa15bc94b92e3425d
push id4225
push userjblandy@mozilla.com
push dateTue, 16 Dec 2008 19:50:52 +0000
treeherdermozilla-central@5748936939f4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs468041
milestone1.9.2a1pre
Bug 468041: List the object files that depend on javascript-trace.h explicitly. r=bsmedberg It seems gratuitous to rebuild every object file when javascript-trace.h changes.
js/src/Makefile.in
--- a/js/src/Makefile.in
+++ b/js/src/Makefile.in
@@ -649,10 +649,12 @@ host_jsoplengen.$(OBJ_SUFFIX): jsopcode.
 $(CPPSRCS:%.cpp=%.$(OBJ_SUFFIX)): $(CURDIR)/jsautokw.h $(CURDIR)/jsautooplen.h
 
 ifdef HAVE_DTRACE
 $(CURDIR)/javascript-trace.h: $(srcdir)/javascript-trace.d
 	dtrace -h -s $(srcdir)/javascript-trace.d -o javascript-trace.h.in
 	sed 's/if _DTRACE_VERSION/ifdef INCLUDE_MOZILLA_DTRACE/' \
 	    javascript-trace.h.in > javascript-trace.h
 
-$(CPPSRCS:%.cpp=%.$(OBJ_SUFFIX)): $(CURDIR)/javascript-trace.h
+# We can't automatically generate dependencies on auto-generated headers;
+# we have to list them explicitly.
+$(addsuffix .$(OBJ_SUFFIX),jsdtracef jsinterp jsobj): $(CURDIR)/javascript-trace.h
 endif