@@ -103,8 +103,10 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBSYNTAX_$(3)): \
103
103
| $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /
104
104
@$$(call E, compile_and_link: $$@ )
105
105
$$(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 $$@ ) )
106
107
$$(STAGE$(1 ) _T_$(2 ) _H_$(3 ) ) $$(WFLAGS_ST$(1 ) ) $(BORROWCK ) --out-dir $$(@D ) $$< && touch $$@
107
108
$$(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 $$@ ) )
108
110
109
111
# Only build the compiler for host triples
110
112
ifneq ($$(findstring $(2 ) ,$$(CFG_HOST ) ) ,)
@@ -119,14 +121,19 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_RUSTLLVM_$(3)): \
119
121
$$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBRUSTC_$(3 ) ) : CFG_COMPILER = $(2 )
120
122
$$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBRUSTC_$(3 ) ) : \
121
123
$$(COMPILER_CRATE ) $$(COMPILER_INPUTS ) \
124
+ $(S ) src/librustc/lib/llvmdeps.rs \
122
125
$$(TSREQ$(1 ) _T_$(2 ) _H_$(3 ) ) \
123
126
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBSYNTAX_$(3)) \
124
127
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_RUSTLLVM_$(3)) \
125
128
| $$(TLIB$(1)_T_$(2)_H_$(3))/
126
129
@$$(call E, compile_and_link: $$@)
127
130
$$(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 $$@
129
135
$$(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 $$@))
130
137
131
138
# NOTE: after the next snapshot remove these '-L' flags
132
139
$$(TBIN$(1 ) _T_$(2 ) _H_$(3 ) ) /rustc$$(X_$(3 ) ) : \
0 commit comments