@@ -103,8 +103,10 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBSYNTAX_$(3)): \
103103 | $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /
104104 @$$(call E, compile_and_link: $$@ )
105105 $$(call REMOVE_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@ ) ,$(LIBSYNTAX_GLOB_$(2 ) ) ,$$(notdir $$@ ) )
106+ $$(call REMOVE_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@ ) ,$(LIBSYNTAX_RGLOB_$(2 ) ) ,$$(notdir $$@ ) )
106107 $$(STAGE$(1 ) _T_$(2 ) _H_$(3 ) ) $$(WFLAGS_ST$(1 ) ) $(BORROWCK ) --out-dir $$(@D ) $$< && touch $$@
107108 $$(call LIST_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@ ) ,$(LIBSYNTAX_GLOB_$(2 ) ) ,$$(notdir $$@ ) )
109+ $$(call LIST_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@ ) ,$(LIBSYNTAX_RGLOB_$(2 ) ) ,$$(notdir $$@ ) )
108110
109111# Only build the compiler for host triples
110112ifneq ($$(findstring $(2 ) ,$$(CFG_HOST ) ) ,)
@@ -119,14 +121,19 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_RUSTLLVM_$(3)): \
119121$$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBRUSTC_$(3 ) ) : CFG_COMPILER = $(2 )
120122$$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBRUSTC_$(3 ) ) : \
121123 $$(COMPILER_CRATE ) $$(COMPILER_INPUTS ) \
124+ $(S ) src/librustc/lib/llvmdeps.rs \
122125 $$(TSREQ$(1 ) _T_$(2 ) _H_$(3 ) ) \
123126 $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBSYNTAX_$(3)) \
124127 $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_RUSTLLVM_$(3)) \
125128 | $$(TLIB$(1)_T_$(2)_H_$(3))/
126129 @$$(call E, compile_and_link: $$@)
127130 $$(call REMOVE_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTC_GLOB_$(2)),$$(notdir $$@))
128- $$(STAGE$(1)_T_$(2)_H_$(3)) $$(WFLAGS_ST$(1)) --out-dir $$(@D) $$< && touch $$@
131+ $$(call REMOVE_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTC_RGLOB_$(2)),$$(notdir $$@))
132+ $$(STAGE$(1)_T_$(2)_H_$(3)) $$(WFLAGS_ST$(1)) \
133+ -L "$$(LLVM_LIBDIR_$(3))" \
134+ --out-dir $$(@D) $$< && touch $$@
129135 $$(call LIST_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTC_GLOB_$(2)),$$(notdir $$@))
136+ $$(call LIST_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTC_RGLOB_$(2)),$$(notdir $$@))
130137
131138# NOTE: after the next snapshot remove these '-L' flags
132139$$(TBIN$(1 ) _T_$(2 ) _H_$(3 ) ) /rustc$$(X_$(3 ) ) : \
0 commit comments