Bug 1208566 - emit proper dependencies when compiling Rust sources; r=mshal
☠☠ backed out by 46abb0f41d94 ☠ ☠
authorNathan Froyd <froydnj@gmail.com>
Wed, 16 Dec 2015 12:58:18 -0800
changeset 316172 f3fd530324ee1054b75e5193031cc75d5cefc408
parent 316171 5889e20eb4190bd83f94c6f8d919498d04e12f2f
child 316173 a5618a5cbc7fe93b5401b2e5aa51e4084c315472
push id8516
push userjlund@mozilla.com
push dateFri, 18 Dec 2015 00:52:34 +0000
reviewersmshal
bugs1208566
milestone46.0a1
Bug 1208566 - emit proper dependencies when compiling Rust sources; r=mshal
config/rules.mk
--- a/config/rules.mk
+++ b/config/rules.mk
@@ -940,17 +940,17 @@ ifdef ASFILES
 	$(AS) $(ASOUTOPTION)$@ $(ASFLAGS) $($(notdir $<)_FLAGS) $(AS_DASH_C_FLAG) $(_VPATH_SRCS)
 endif
 
 ifdef MOZ_RUST
 # Assume any system libraries rustc links against are already
 # in the target's LIBS.
 $(RSOBJS):
 	$(REPORT_BUILD)
-	$(RUSTC) $(RUSTFLAGS) --crate-type staticlib -o $(call mk_libname,$<) $(_VPATH_SRCS)
+	$(RUSTC) $(RUSTFLAGS) --crate-type staticlib --emit dep-info=$(MDDEPDIR)/$(call mk_libname,$<).pp,link=$(call mk_libname,$<) $(_VPATH_SRCS)
 endif
 
 $(SOBJS):
 	$(REPORT_BUILD)
 	$(AS) -o $@ $(ASFLAGS) $($(notdir $<)_FLAGS) $(LOCAL_INCLUDES) $(TARGET_LOCAL_INCLUDES) -c $<
 
 $(CPPOBJS):
 	$(REPORT_BUILD)