Skip to content

Commit 5b58805

Browse files
committed
---
yaml --- r: 6494 b: refs/heads/master c: 9c00c62 h: refs/heads/master v: v3
1 parent 2931bf8 commit 5b58805

File tree

10 files changed

+50
-40
lines changed

10 files changed

+50
-40
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 092fc0ab2216a63a8ff698ff61ed9fefe54fa31a
2+
refs/heads/master: 9c00c62b08c1c2c5162ab8179096e88de3a203bc

trunk/Makefile.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ GEN_MKFILES := $(wildcard $(CFG_SRC_DIR)/mk/libuv/*/*/*) \
5959

6060
MKFILES := $(OUR_MKFILES) $(3RDPARTY_MKFILES) $(GEN_MKFILES)
6161

62+
ifdef IGNORE_MKFILES
63+
MKFILE_DEPS :=
64+
else
65+
MKFILE_DEPS := $(MKFILES)
66+
endif
67+
6268
NON_HOST_TRIPLES = $(filter-out $(CFG_HOST_TRIPLE),$(CFG_TARGET_TRIPLES))
6369

6470
ifneq ($(MAKE_RESTARTS),)

trunk/mk/autodep.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
C_DEPFILES := $(RUNTIME_CS:%.cpp=%.d) $(RUSTLLVM_LIB_CS:%.cpp=%.d) \
66
$(RUSTLLVM_OBJS_CS:%.cpp=%.d)
77

8-
rt/%.d: rt/%.cpp $(MKFILES)
8+
rt/%.d: rt/%.cpp $(MKFILE_DEPS)
99
@$(call E, dep: $@)
1010
$(Q)$(call CFG_DEPEND_C, $@ \
1111
$(subst $(S)src/,,$(patsubst %.cpp, %.o, $<)), \
@@ -14,7 +14,7 @@ rt/%.d: rt/%.cpp $(MKFILES)
1414
1515
1616

17-
rustllvm/%.d: rustllvm/%.cpp $(MKFILES) $(LLVM_CONFIG_$(CFG_HOST_TRIPLE))
17+
rustllvm/%.d: rustllvm/%.cpp $(MKFILE_DEPS) $(LLVM_CONFIG_$(CFG_HOST_TRIPLE))
1818
@$(call E, dep: $@)
1919
$(Q)$(call CFG_DEPEND_C, $@ \
2020
$(subst $(S)src/,,$(patsubst %.cpp, %.o, $<)), \

trunk/mk/dist.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ PKG_FILES = \
5353
$(COMPILETEST_CRATE) \
5454
$(COMPILETEST_INPUTS) \
5555
$(PKG_PP_EXAMPLES) \
56-
$(MKFILES)
56+
$(MKFILE_DEPS)
5757

5858
dist: $(PKG_TAR) $(PKG_EXE)
5959

trunk/mk/docs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ doc/keywords.texi: $(S)doc/keywords.txt $(S)src/etc/gen-keywords-table.py
88
@$(call E, gen-keywords-table: $@)
99
$(Q)$(S)src/etc/gen-keywords-table.py
1010

11-
doc/version.texi: $(MKFILES) rust.texi
11+
doc/version.texi: $(MKFILE_DEPS) rust.texi
1212
@$(call E, version-stamp: $@)
1313
$(Q)echo "@macro gitversion" >$@
1414
$(Q)echo "$(CFG_VERSION)" >>$@

trunk/mk/rt.mk

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,22 +131,23 @@ RUNTIME_OBJS_$(1) := $$(RUNTIME_CS_$(1):rt/%.cpp=rt/$(1)/%.o) \
131131
$$(RUNTIME_S_$(1):rt/%.S=rt/$(1)/%.o)
132132
RUNTIME_LIBS_$(1) := $$(LIBUV_LIB_$(1))
133133

134-
rt/$(1)/%.o: rt/%.cpp $$(MKFILES)
134+
rt/$(1)/%.o: rt/%.cpp $$(MKFILE_DEPS)
135135
@$$(call E, compile: $$@)
136136
$$(Q)$$(call CFG_COMPILE_C_$(1), $$@, $$(RUNTIME_INCS_$(1))) $$<
137137

138-
rt/$(1)/%.o: rt/%.S $$(MKFILES)
138+
rt/$(1)/%.o: rt/%.S $$(MKFILE_DEPS)
139139
@$$(call E, compile: $$@)
140140
$$(Q)$$(call CFG_COMPILE_C_$(1), $$@, $$(RUNTIME_INCS_$(1))) $$<
141141

142-
rt/$(1)/arch/$$(HOST_$(1))/libmorestack.a: rt/$(1)/arch/$$(HOST_$(1))/morestack.o
142+
rt/$(1)/arch/$$(HOST_$(1))/libmorestack.a: \
143+
rt/$(1)/arch/$$(HOST_$(1))/morestack.o
143144
@$$(call E, link: $$@)
144145
$$(Q)ar rcs $$@ $$<
145146

146-
rt/$(1)/$(CFG_RUNTIME): $$(RUNTIME_OBJS_$(1)) $$(MKFILES) \
147-
$$(RUNTIME_HDR_$(1)) \
148-
$$(RUNTIME_DEF_$(1)) \
149-
$$(RUNTIME_LIBS_$(1))
147+
rt/$(1)/$(CFG_RUNTIME): $$(RUNTIME_OBJS_$(1)) $$(MKFILE_DEPS) \
148+
$$(RUNTIME_HDR_$(1)) \
149+
$$(RUNTIME_DEF_$(1)) \
150+
$$(RUNTIME_LIBS_$(1))
150151
@$$(call E, link: $$@)
151152
$$(Q)$$(call CFG_LINK_C_$(1),$$@, $$(RUNTIME_OBJS_$(1)) \
152153
$$(CFG_GCCISH_POST_LIB_FLAGS) $$(RUNTIME_LIBS_$(1)) \
@@ -172,18 +173,18 @@ $$(LIBUV_LIB_$(1)): $$(wildcard \
172173
# These could go in rt.mk or rustllvm.mk, they're needed for both.
173174

174175
# This regexp has a single $, escaped twice
175-
%.linux.def: %.def.in $$(MKFILES)
176+
%.linux.def: %.def.in $$(MKFILE_DEPS)
176177
@$$(call E, def: $$@)
177178
$$(Q)echo "{" > $$@
178179
$$(Q)sed 's/.$$$$/&;/' $$< >> $$@
179180
$$(Q)echo "};" >> $$@
180181

181-
%.darwin.def: %.def.in $$(MKFILES)
182+
%.darwin.def: %.def.in $$(MKFILE_DEPS)
182183
@$$(call E, def: $$@)
183184
$$(Q)sed 's/^./_&/' $$< > $$@
184185

185186
ifdef CFG_WINDOWSY
186-
%.def: %.def.in $$(MKFILES)
187+
%.def: %.def.in $$(MKFILE_DEPS)
187188
@$$(call E, def: $$@)
188189
$$(Q)echo LIBRARY $$* > $$@
189190
$$(Q)echo EXPORTS >> $$@

trunk/mk/rustllvm.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ RUSTLLVM_INCS_$(1) = -iquote $$(LLVM_INCDIR_$(1)) \
1919
RUSTLLVM_OBJS_OBJS_$(1) := $$(RUSTLLVM_OBJS_CS_$(1):rustllvm/%.cpp=rustllvm/$(1)/%.o)
2020

2121
rustllvm/$(1)/$(CFG_RUSTLLVM): $$(RUSTLLVM_OBJS_OBJS_$(1)) \
22-
$$(MKFILES) $$(RUSTLLVM_DEF_$(1))
22+
$$(MKFILE_DEPS) $$(RUSTLLVM_DEF_$(1))
2323
@$$(call E, link: $$@)
2424
$$(Q)$$(call CFG_LINK_C_$(1),$$@,$$(RUSTLLVM_OBJS_OBJS_$(1)) \
2525
$$(CFG_GCCISH_PRE_LIB_FLAGS) $$(LLVM_LIBS_$(1)) \
2626
$$(CFG_GCCISH_POST_LIB_FLAGS) \
2727
$$(LLVM_LDFLAGS_$(1)),$$(RUSTLLVM_DEF_$(1)),$$(CFG_RUSTLLVM))
2828

29-
rustllvm/$(1)/%.o: rustllvm/%.cpp $$(MKFILES) $$(LLVM_CONFIG_$(1))
29+
rustllvm/$(1)/%.o: rustllvm/%.cpp $$(MKFILE_DEPS) $$(LLVM_CONFIG_$(1))
3030
@$$(call E, compile: $$@)
3131
$$(Q)$$(call CFG_COMPILE_C_$(1), $$@, $$(LLVM_CXXFLAGS_$(1)) $$(RUSTLLVM_INCS_$(1))) $$<
3232
endef

trunk/mk/stage0.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
$(HBIN0_H_$(CFG_HOST_TRIPLE))/rustc$(X): \
44
$(S)src/snapshots.txt \
5-
$(S)src/etc/get-snapshot.py $(MKFILES)
5+
$(S)src/etc/get-snapshot.py $(MKFILE_DEPS)
66
@$(call E, fetch: $@)
77
$(Q)$(S)src/etc/get-snapshot.py $(CFG_HOST_TRIPLE)
88
$(Q)touch $@
@@ -50,5 +50,7 @@ $$(HLIB0_H_$(1))/$(CFG_RUSTLLVM): \
5050

5151
endef
5252

53+
# Use stage1 to build other architectures: then you don't have to wait
54+
# for stage2, but you get the latest updates to the compiler source.
5355
$(foreach t,$(NON_HOST_TRIPLES), \
54-
$(eval $(call BOOTSTRAP_STAGE0,$(t),2,$(CFG_HOST_TRIPLE))))
56+
$(eval $(call BOOTSTRAP_STAGE0,$(t),1,$(CFG_HOST_TRIPLE))))

trunk/mk/tests.mk

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -201,62 +201,62 @@ CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3) := \
201201
--rustcflags "$$(CFG_RUSTC_FLAGS) --target=$(2)" \
202202
$$(CTEST_TESTARGS)
203203

204-
CFAIL_ARGS$(1)-T-$(2)-H-$(3) := \
204+
CFAIL_ARGS$(1)-T-$(2)-H-$(3) := \
205205
$$(CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3)) \
206206
--src-base $$(S)src/test/compile-fail/ \
207-
--build-base test/compile-fail/ \
207+
--build-base $(3)/test/compile-fail/ \
208208
--mode compile-fail
209209

210-
RFAIL_ARGS$(1)-T-$(2)-H-$(3) := \
210+
RFAIL_ARGS$(1)-T-$(2)-H-$(3) := \
211211
$$(CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3)) \
212212
--src-base $$(S)src/test/run-fail/ \
213-
--build-base test/run-fail/ \
213+
--build-base $(3)/test/run-fail/ \
214214
--mode run-fail \
215215
$$(CTEST_RUNTOOL)
216216

217-
RPASS_ARGS$(1)-T-$(2)-H-$(3) := \
217+
RPASS_ARGS$(1)-T-$(2)-H-$(3) := \
218218
$$(CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3)) \
219219
--src-base $$(S)src/test/run-pass/ \
220-
--build-base test/run-pass/ \
220+
--build-base $(3)/test/run-pass/ \
221221
--mode run-pass \
222222
$$(CTEST_RUNTOOL)
223223

224-
BENCH_ARGS$(1)-T-$(2)-H-$(3) := \
224+
BENCH_ARGS$(1)-T-$(2)-H-$(3) := \
225225
$$(CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3)) \
226226
--src-base $$(S)src/test/bench/ \
227-
--build-base test/bench/ \
227+
--build-base $(3)/test/bench/ \
228228
--mode run-pass \
229229
$$(CTEST_RUNTOOL)
230230

231-
PERF_ARGS$(1)-T-$(2)-H-$(3) := \
231+
PERF_ARGS$(1)-T-$(2)-H-$(3) := \
232232
$$(CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3)) \
233233
--src-base $$(S)src/test/bench/ \
234-
--build-base test/perf/ \
234+
--build-base $(3)/test/perf/ \
235235
--mode run-pass \
236236
$$(CTEST_PERF_RUNTOOL)
237237

238-
PRETTY_RPASS_ARGS$(1)-T-$(2)-H-$(3) := \
238+
PRETTY_RPASS_ARGS$(1)-T-$(2)-H-$(3) := \
239239
$$(CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3)) \
240240
--src-base $$(S)src/test/run-pass/ \
241-
--build-base test/run-pass/ \
241+
--build-base $(3)/test/run-pass/ \
242242
--mode pretty
243243

244-
PRETTY_RFAIL_ARGS$(1)-T-$(2)-H-$(3) := \
244+
PRETTY_RFAIL_ARGS$(1)-T-$(2)-H-$(3) := \
245245
$$(CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3)) \
246246
--src-base $$(S)src/test/run-fail/ \
247-
--build-base test/run-fail/ \
247+
--build-base $(3)/test/run-fail/ \
248248
--mode pretty
249249

250-
PRETTY_BENCH_ARGS$(1)-T-$(2)-H-$(3) := \
250+
PRETTY_BENCH_ARGS$(1)-T-$(2)-H-$(3) := \
251251
$$(CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3)) \
252252
--src-base $$(S)src/test/bench/ \
253-
--build-base test/bench/ \
253+
--build-base $(3)/test/bench/ \
254254
--mode pretty
255255

256-
PRETTY_PRETTY_ARGS$(1)-T-$(2)-H-$(3) := \
256+
PRETTY_PRETTY_ARGS$(1)-T-$(2)-H-$(3) := \
257257
$$(CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3)) \
258258
--src-base $$(S)src/test/pretty/ \
259-
--build-base test/pretty/ \
259+
--build-base $(3)/test/pretty/ \
260260
--mode pretty
261261

262262
check-stage$(1)-T-$(2)-H-$(3)-cfail-dummy: \

trunk/mk/tools.mk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ $$(HBIN$(2)_H_$(4))/compiletest$$(X): \
4545

4646
endef
4747

48-
$(eval $(call TOOLS_STAGE_N,0,1,$(CFG_HOST_TRIPLE),$(CFG_HOST_TRIPLE)))
49-
$(eval $(call TOOLS_STAGE_N,1,2,$(CFG_HOST_TRIPLE),$(CFG_HOST_TRIPLE)))
50-
$(eval $(call TOOLS_STAGE_N,2,3,$(CFG_HOST_TRIPLE),$(CFG_HOST_TRIPLE)))
48+
$(foreach host,$(CFG_TARGET_TRIPLES), \
49+
$(eval $(call TOOLS_STAGE_N,0,1,$(host),$(host))) \
50+
$(eval $(call TOOLS_STAGE_N,1,2,$(host),$(host))) \
51+
$(eval $(call TOOLS_STAGE_N,2,3,$(host),$(host))))

0 commit comments

Comments
 (0)