@@ -124,12 +124,6 @@ endif
124
124
ifdef TRACE
125
125
CFG_RUSTC_FLAGS += -Z trace
126
126
endif
127
- ifdef CFG_DISABLE_RPATH
128
- # NOTE: make this CFG_RUSTC_FLAGS after stage0 snapshot
129
- RUSTFLAGS_STAGE1 += --no-rpath
130
- RUSTFLAGS_STAGE2 += --no-rpath
131
- RUSTFLAGS_STAGE3 += --no-rpath
132
- endif
133
127
134
128
# The executables crated during this compilation process have no need to include
135
129
# static copies of libstd and libextra. We also generate dynamic versions of all
@@ -222,27 +216,72 @@ GENERATED :=
222
216
223
217
224
218
# #####################################################################
225
- # Cleaning out old crates
219
+ # Crates
226
220
# #####################################################################
227
221
222
+ define DEF_LIBS
223
+
224
+ CFG_RUNTIME_$(1 ) :=$(call CFG_STATIC_LIB_NAME_$(1 ) ,rustrt)
225
+ CFG_RUSTLLVM_$(1 ) :=$(call CFG_STATIC_LIB_NAME_$(1 ) ,rustllvm)
226
+ CFG_STDLIB_$(1 ) :=$(call CFG_LIB_NAME_$(1 ) ,std)
227
+ CFG_EXTRALIB_$(1 ) :=$(call CFG_LIB_NAME_$(1 ) ,extra)
228
+ CFG_LIBRUSTC_$(1 ) :=$(call CFG_LIB_NAME_$(1 ) ,rustc)
229
+ CFG_LIBSYNTAX_$(1 ) :=$(call CFG_LIB_NAME_$(1 ) ,syntax)
230
+ CFG_LIBRUSTPKG_$(1 ) :=$(call CFG_LIB_NAME_$(1 ) ,rustpkg)
231
+ CFG_LIBRUSTDOC_$(1 ) :=$(call CFG_LIB_NAME_$(1 ) ,rustdoc)
232
+ CFG_LIBRUSTUV_$(1 ) :=$(call CFG_LIB_NAME_$(1 ) ,rustuv)
233
+ CFG_LIBGREEN_$(1 ) :=$(call CFG_LIB_NAME_$(1 ) ,green)
234
+ CFG_LIBNATIVE_$(1 ) :=$(call CFG_LIB_NAME_$(1 ) ,native)
235
+
236
+ EXTRALIB_GLOB_$(1 ) :=$(call CFG_LIB_GLOB_$(1 ) ,extra)
237
+ STDLIB_GLOB_$(1 ) :=$(call CFG_LIB_GLOB_$(1 ) ,std)
238
+ LIBRUSTC_GLOB_$(1 ) :=$(call CFG_LIB_GLOB_$(1 ) ,rustc)
239
+ LIBSYNTAX_GLOB_$(1 ) :=$(call CFG_LIB_GLOB_$(1 ) ,syntax)
240
+ LIBRUSTPKG_GLOB_$(1 ) :=$(call CFG_LIB_GLOB_$(1 ) ,rustpkg)
241
+ LIBRUSTDOC_GLOB_$(1 ) :=$(call CFG_LIB_GLOB_$(1 ) ,rustdoc)
242
+ LIBRUSTUV_GLOB_$(1 ) :=$(call CFG_LIB_GLOB_$(1 ) ,rustuv)
243
+ LIBGREEN_GLOB_$(1 ) :=$(call CFG_LIB_GLOB_$(1 ) ,green)
244
+ LIBNATIVE_GLOB_$(1 ) :=$(call CFG_LIB_GLOB_$(1 ) ,native)
245
+ EXTRALIB_DSYM_GLOB_$(1 ) :=$(call CFG_LIB_DSYM_GLOB_$(1 ) ,extra)
246
+ STDLIB_DSYM_GLOB_$(1 ) :=$(call CFG_LIB_DSYM_GLOB_$(1 ) ,std)
247
+ LIBRUSTC_DSYM_GLOB_$(1 ) :=$(call CFG_LIB_DSYM_GLOB_$(1 ) ,rustc)
248
+ LIBSYNTAX_DSYM_GLOB_$(1 ) :=$(call CFG_LIB_DSYM_GLOB_$(1 ) ,syntax)
249
+ LIBRUSTPKG_DSYM_GLOB_$(1 ) :=$(call CFG_LIB_DSYM_GLOB_$(1 ) ,rustpkg)
250
+ LIBRUSTDOC_DSYM_GLOB_$(1 ) :=$(call CFG_LIB_DSYM_GLOB_$(1 ) ,rustdoc)
251
+ LIBRUSTUV_DSYM_GLOB_$(1 ) :=$(call CFG_LIB_DSYM_GLOB_$(1 ) ,rustuv)
252
+ LIBGREEN_DSYM_GLOB_$(1 ) :=$(call CFG_LIB_DSYM_GLOB_$(1 ) ,green)
253
+ LIBNATIVE_DSYM_GLOB_$(1 ) :=$(call CFG_LIB_DSYM_GLOB_$(1 ) ,native)
254
+
255
+ EXTRALIB_RGLOB_$(1 ) :=$(call CFG_RLIB_GLOB,extra)
256
+ STDLIB_RGLOB_$(1 ) :=$(call CFG_RLIB_GLOB,std)
257
+ LIBRUSTUV_RGLOB_$(1 ) :=$(call CFG_RLIB_GLOB,rustuv)
258
+ LIBSYNTAX_RGLOB_$(1 ) :=$(call CFG_RLIB_GLOB,syntax)
259
+ LIBRUSTC_RGLOB_$(1 ) :=$(call CFG_RLIB_GLOB,rustc)
260
+ LIBNATIVE_RGLOB_$(1 ) :=$(call CFG_RLIB_GLOB,native)
261
+ LIBGREEN_RGLOB_$(1 ) :=$(call CFG_RLIB_GLOB,green)
262
+
263
+ endef
264
+
228
265
# $(1) is the path for directory to match against
229
266
# $(2) is the glob to use in the match
267
+ # $(3) is filename (usually the target being created) to filter out from match
268
+ # (i.e. filename is not out-of-date artifact from prior Rust version/build)
230
269
#
231
270
# Note that a common bug is to accidentally construct the glob denoted
232
271
# by $(2) with a space character prefix, which invalidates the
233
272
# construction $(1)$(2).
234
- define CHECK_FOR_OLD_GLOB_MATCHES
235
- $(Q ) MATCHES="$(wildcard $(1 ) ) "; if [ -n "$$MATCHES" ] ; then echo "warning: there are previous" \'$(notdir $( 2 ) ) \' "libraries:" $$MATCHES; fi
273
+ define CHECK_FOR_OLD_GLOB_MATCHES_EXCEPT
274
+ $(Q ) MATCHES="$(filter-out % $( 3 ) , $( wildcard $(1 ) / $( 2 ) ) ) "; if [ -n "$$MATCHES" ] ; then echo "warning: there are previous" \'$(2 ) \' "libraries:" $$MATCHES; fi
236
275
endef
237
276
238
277
# Same interface as above, but deletes rather than just listing the files.
239
278
ifdef VERBOSE
240
- define REMOVE_ALL_OLD_GLOB_MATCHES
241
- $(Q ) MATCHES="$(wildcard $(1 ) ) "; if [ -n "$$MATCHES" ] ; then echo "warning: removing previous" \'$(notdir $( 1 ) ) \' "libraries:" $$MATCHES; rm $$MATCHES ; fi
279
+ define REMOVE_ALL_OLD_GLOB_MATCHES_EXCEPT
280
+ $(Q ) MATCHES="$(filter-out % $( 3 ) , $( wildcard $(1 ) / $( 2 ) ) ) "; if [ -n "$$MATCHES" ] ; then echo "warning: removing previous" \'$(2 ) \' "libraries:" $$MATCHES; rm $$MATCHES ; fi
242
281
endef
243
282
else
244
- define REMOVE_ALL_OLD_GLOB_MATCHES
245
- $(Q ) MATCHES="$(wildcard $(1 ) ) "; if [ -n "$$MATCHES" ] ; then rm $$MATCHES ; fi
283
+ define REMOVE_ALL_OLD_GLOB_MATCHES_EXCEPT
284
+ $(Q ) MATCHES="$(filter-out % $( 3 ) , $( wildcard $(1 ) / $( 2 ) ) ) "; if [ -n "$$MATCHES" ] ; then rm $$MATCHES ; fi
246
285
endef
247
286
endif
248
287
@@ -253,15 +292,72 @@ endif
253
292
# soon. (This is in contrast to the macros above, which are meant to
254
293
# be run at the outset of a command list in a rule.)
255
294
ifdef VERBOSE
256
- define LIST_ALL_OLD_GLOB_MATCHES
257
- @echo "info: now are following matches for" '$(notdir $( 1 ) ) ' "libraries:"
258
- @( ls $(1 ) 2 >/dev/null || true )
295
+ define LIST_ALL_OLD_GLOB_MATCHES_EXCEPT
296
+ @echo "info: now are following matches for" '$(2 ) ' "libraries:"
297
+ @( cd $(1 ) && ( ls $( 2 ) 2 >/dev/null || true ) | grep -v $( 3 ) || true )
259
298
endef
260
299
else
261
- define LIST_ALL_OLD_GLOB_MATCHES
300
+ define LIST_ALL_OLD_GLOB_MATCHES_EXCEPT
262
301
endef
263
302
endif
264
303
304
+ $(foreach target,$(CFG_TARGET),\
305
+ $(eval $(call DEF_LIBS,$(target))))
306
+
307
+ # #####################################################################
308
+ # Standard library variables
309
+ # #####################################################################
310
+
311
+ STDLIB_CRATE := $(S ) src/libstd/lib.rs
312
+ STDLIB_INPUTS := $(wildcard $(addprefix $(S ) src/libstd/, \
313
+ * .rs * /* .rs * /* /* rs * /* /* /* rs) )
314
+
315
+ # #####################################################################
316
+ # Extra library variables
317
+ # #####################################################################
318
+
319
+ EXTRALIB_CRATE := $(S ) src/libextra/lib.rs
320
+ EXTRALIB_INPUTS := $(wildcard $(addprefix $(S ) src/libextra/, \
321
+ * .rs * /* .rs) )
322
+
323
+ # #####################################################################
324
+ # Rust UV library variables
325
+ # #####################################################################
326
+
327
+ LIBRUSTUV_CRATE := $(S ) src/librustuv/lib.rs
328
+ LIBRUSTUV_INPUTS := $(wildcard $(addprefix $(S ) src/librustuv/, \
329
+ * .rs * /* .rs) )
330
+
331
+ # #####################################################################
332
+ # Green threading library variables
333
+ # #####################################################################
334
+
335
+ LIBGREEN_CRATE := $(S ) src/libgreen/lib.rs
336
+ LIBGREEN_INPUTS := $(wildcard $(addprefix $(S ) src/libgreen/, \
337
+ * .rs * /* .rs) )
338
+
339
+ # #####################################################################
340
+ # Native threading library variables
341
+ # #####################################################################
342
+
343
+ LIBNATIVE_CRATE := $(S ) src/libnative/lib.rs
344
+ LIBNATIVE_INPUTS := $(wildcard $(addprefix $(S ) src/libnative/, \
345
+ * .rs * /* .rs) )
346
+
347
+ # #####################################################################
348
+ # rustc crate variables
349
+ # #####################################################################
350
+
351
+ COMPILER_CRATE := $(S ) src/librustc/lib.rs
352
+ COMPILER_INPUTS := $(wildcard $(addprefix $(S ) src/librustc/, \
353
+ * .rs * /* .rs * /* /* .rs * /* /* /* .rs) )
354
+
355
+ LIBSYNTAX_CRATE := $(S ) src/libsyntax/lib.rs
356
+ LIBSYNTAX_INPUTS := $(wildcard $(addprefix $(S ) src/libsyntax/, \
357
+ * .rs * /* .rs * /* /* .rs * /* /* /* .rs) )
358
+
359
+ DRIVER_CRATE := $(S ) src/driver/driver.rs
360
+
265
361
# #####################################################################
266
362
# LLVM macros
267
363
# #####################################################################
@@ -323,10 +419,12 @@ export CFG_LIBDIR_RELATIVE
323
419
export CFG_DISABLE_INJECT_STD_VERSION
324
420
325
421
# #####################################################################
326
- # Per-stage targets and runner
422
+ # Subprograms
327
423
# #####################################################################
328
424
329
- include $(CFG_SRC_DIR ) mk/crates.mk
425
+ # #####################################################################
426
+ # Per-stage targets and runner
427
+ # #####################################################################
330
428
331
429
define SREQ
332
430
# $(1) is the stage number
@@ -343,37 +441,84 @@ TROOT$(1)_T_$(2)_H_$(3) = $$(HLIB$(1)_H_$(3))/$$(CFG_RUSTLIBDIR)/$(2)
343
441
TBIN$(1 ) _T_$(2 ) _H_$(3 ) = $$(TROOT$(1 ) _T_$(2 ) _H_$(3 ) ) /bin
344
442
TLIB$(1 ) _T_$(2 ) _H_$(3 ) = $$(TROOT$(1 ) _T_$(2 ) _H_$(3 ) ) /lib
345
443
444
+ # The name of the standard and extra libraries used by rustc
445
+ HSTDLIB_DEFAULT$(1 ) _H_$(3 ) = \
446
+ $$(HLIB$(1 ) _H_$(3 ) ) /$(CFG_STDLIB_$(3 ) )
447
+ TSTDLIB_DEFAULT$(1 ) _T_$(2 ) _H_$(3 ) = \
448
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_STDLIB_$(2 ) )
449
+
450
+ HEXTRALIB_DEFAULT$(1 ) _H_$(3 ) = \
451
+ $$(HLIB$(1 ) _H_$(3 ) ) /$(CFG_EXTRALIB_$(3 ) )
452
+ TEXTRALIB_DEFAULT$(1 ) _T_$(2 ) _H_$(3 ) = \
453
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_EXTRALIB_$(2 ) )
454
+
455
+ HLIBRUSTC_DEFAULT$(1 ) _H_$(3 ) = \
456
+ $$(HLIB$(1 ) _H_$(3 ) ) /$(CFG_LIBRUSTC_$(3 ) )
457
+ TLIBRUSTC_DEFAULT$(1 ) _T_$(2 ) _H_$(3 ) = \
458
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBRUSTC_$(2 ) )
459
+
460
+ HLIBRUSTUV_DEFAULT$(1 ) _H_$(3 ) = \
461
+ $$(HLIB$(1 ) _H_$(3 ) ) /$(CFG_LIBRUSTUV_$(3 ) )
462
+ TLIBRUSTUV_DEFAULT$(1 ) _T_$(2 ) _H_$(3 ) = \
463
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBRUSTUV_$(2 ) )
464
+
465
+ HLIBGREEN_DEFAULT$(1 ) _H_$(3 ) = \
466
+ $$(HLIB$(1 ) _H_$(3 ) ) /$(CFG_LIBGREEN_$(3 ) )
467
+ TLIBGREEN_DEFAULT$(1 ) _T_$(2 ) _H_$(3 ) = \
468
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBGREEN_$(2 ) )
469
+
470
+ HLIBNATIVE_DEFAULT$(1 ) _H_$(3 ) = \
471
+ $$(HLIB$(1 ) _H_$(3 ) ) /$(CFG_LIBNATIVE_$(3 ) )
472
+ TLIBNATIVE_DEFAULT$(1 ) _T_$(2 ) _H_$(3 ) = \
473
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBNATIVE_$(2 ) )
474
+
346
475
# Preqrequisites for using the stageN compiler
347
476
ifeq ($(1 ) ,0)
348
477
HSREQ$(1)_H_$(3) = $$(HBIN$(1 ) _H_$(3 ) ) /rustc$$(X_$(3 ) )
349
478
else
350
479
HSREQ$(1)_H_$(3) = \
351
480
$$(HBIN$(1 ) _H_$(3 ) ) /rustc$$(X_$(3 ) ) \
352
- $$(HLIB$(1 ) _H_$(3 ) ) /stamp.rustc \
353
- $$(foreach dep,$$(RUST_DEPS_rustc ) ,$$(HLIB$(1 ) _H_$(3 ) ) /stamp.$$(dep ) ) \
481
+ $$(HSTDLIB_DEFAULT$(1 ) _H_$(3 ) ) \
482
+ $$(HEXTRALIB_DEFAULT$(1 ) _H_$(3 ) ) \
483
+ $$(HLIBSYNTAX_DEFAULT$(1 ) _H_$(3 ) ) \
484
+ $$(HLIBRUSTC_DEFAULT$(1 ) _H_$(3 ) ) \
485
+ $$(HLIBRUSTUV_DEFAULT$(1 ) _H_$(3 ) ) \
486
+ $$(HLIBGREEN_DEFAULT$(1 ) _H_$(3 ) ) \
487
+ $$(HLIBNATIVE_DEFAULT$(1 ) _H_$(3 ) ) \
354
488
$$(MKFILE_DEPS )
355
489
endif
356
490
357
491
# Prerequisites for using the stageN compiler to build target artifacts
358
492
TSREQ$(1 ) _T_$(2 ) _H_$(3 ) = \
359
493
$$(HSREQ$(1 ) _H_$(3 ) ) \
494
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_RUNTIME_$(2 ) ) \
360
495
$$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /libmorestack.a
361
496
362
- # Prerequisites for a working stageN compiler and libraries, for a specific
363
- # target
497
+ # Prerequisites for a working stageN compiler and libraries, for a specific target
364
498
SREQ$(1 ) _T_$(2 ) _H_$(3 ) = \
365
499
$$(TSREQ$(1 ) _T_$(2 ) _H_$(3 ) ) \
366
- $$(foreach dep,$$(TARGET_CRATES ) ,\
367
- $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /stamp.$$(dep ) )
500
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_STDLIB_$(2 ) ) \
501
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_EXTRALIB_$(2 ) ) \
502
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBRUSTUV_$(2 ) ) \
503
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBGREEN_$(2 ) ) \
504
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBNATIVE_$(2 ) )
368
505
369
- # Prerequisites for a working stageN compiler and complete set of target
370
- # libraries
506
+ # Prerequisites for a working stageN compiler and libraries, for a specific target
371
507
CSREQ$(1 ) _T_$(2 ) _H_$(3 ) = \
372
508
$$(TSREQ$(1 ) _T_$(2 ) _H_$(3 ) ) \
373
509
$$(HBIN$(1 ) _H_$(3 ) ) /rustpkg$$(X_$(3 ) ) \
374
510
$$(HBIN$(1 ) _H_$(3 ) ) /rustdoc$$(X_$(3 ) ) \
375
- $$(foreach dep,$$(CRATES ) ,$$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /stamp.$$(dep ) ) \
376
- $$(foreach dep,$$(HOST_CRATES ) ,$$(HLIB$(1 ) _H_$(3 ) ) /stamp.$$(dep ) )
511
+ $$(HLIB$(1 ) _H_$(3 ) ) /$(CFG_LIBRUSTPKG_$(3 ) ) \
512
+ $$(HLIB$(1 ) _H_$(3 ) ) /$(CFG_LIBRUSTDOC_$(3 ) ) \
513
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_STDLIB_$(2 ) ) \
514
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_EXTRALIB_$(2 ) ) \
515
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBSYNTAX_$(2 ) ) \
516
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBRUSTC_$(2 ) ) \
517
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBRUSTPKG_$(2 ) ) \
518
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBRUSTDOC_$(2 ) ) \
519
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBRUSTUV_$(2 ) ) \
520
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBGREEN_$(2 ) ) \
521
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_LIBNATIVE_$(2 ) )
377
522
378
523
ifeq ($(1 ) ,0)
379
524
# Don't run the the stage0 compiler under valgrind - that ship has sailed
@@ -396,30 +541,17 @@ CFGFLAG$(1)_T_$(2)_H_$(3) = stage1
396
541
endif
397
542
endif
398
543
399
- ifdef CFG_DISABLE_RPATH
400
- ifeq ($$(OSTYPE_$(3 ) ) ,apple-darwin)
401
- RPATH_VAR$(1)_T_$(2)_H_$(3) := \
402
- DYLD_LIBRARY_PATH="$$$$DYLD_LIBRARY_PATH:$$(HLIB$(1 ) _H_$(3 ) ) "
403
- else
404
- RPATH_VAR$(1)_T_$(2)_H_$(3) := \
405
- LD_LIBRARY_PATH="$$$$LD_LIBRARY_PATH:$$(HLIB$(1 ) _H_$(3 ) ) "
406
- endif
407
- else
408
- RPATH_VAR$(1)_T_$(2)_H_$(3) :=
409
- endif
410
-
411
544
STAGE$(1 ) _T_$(2 ) _H_$(3 ) := \
412
- $$(Q )$$(RPATH_VAR$(1 ) _T_$(2 ) _H_$(3 ) ) \
413
- $$(call CFG_RUN_TARG_$(3 ) ,$(1 ) , \
414
- $$(CFG_VALGRIND_COMPILE$(1 ) ) \
545
+ $$(Q )$$(call CFG_RUN_TARG_$(3 ) ,$(1 ) , \
546
+ $$(CFG_VALGRIND_COMPILE$(1 ) ) \
415
547
$$(HBIN$(1 ) _H_$(3 ) ) /rustc$$(X_$(3 ) ) \
416
548
--cfg $$(CFGFLAG$(1 ) _T_$(2 ) _H_$(3 ) ) \
417
549
$$(CFG_RUSTC_FLAGS ) $$(EXTRAFLAGS_STAGE$(1 ) ) --target=$(2 ) ) \
418
550
$$(RUSTC_FLAGS_$(2 ) )
419
551
420
- PERF_STAGE$(1 ) _T_$(2 ) _H_$(3 ) := \
552
+ PERF_STAGE$(1 ) _T_$(2 ) _H_$(3 ) := \
421
553
$$(Q )$$(call CFG_RUN_TARG_$(3 ) ,$(1 ) , \
422
- $$(CFG_PERF_TOOL ) \
554
+ $$(CFG_PERF_TOOL ) \
423
555
$$(HBIN$(1 ) _H_$(3 ) ) /rustc$$(X_$(3 ) ) \
424
556
--cfg $$(CFGFLAG$(1 ) _T_$(2 ) _H_$(3 ) ) \
425
557
$$(CFG_RUSTC_FLAGS ) $$(EXTRAFLAGS_STAGE$(1 ) ) --target=$(2 ) ) \
@@ -443,12 +575,13 @@ define DEF_RUSTC_STAGE_TARGET
443
575
# $(2) == stage
444
576
445
577
rustc-stage$(2 ) -H-$(1 ) : \
446
- $$(foreach target,$$(CFG_TARGET ) ,$$(SREQ$(2 ) _T_$$(target ) _H_$(1 ) ) )
578
+ $$(foreach target,$$(CFG_TARGET ) , \
579
+ $$(SREQ$(2 ) _T_$$(target ) _H_$(1 ) ) )
447
580
448
581
endef
449
582
450
- $(foreach host,$(CFG_HOST), \
451
- $(eval $(foreach stage,1 2 3, \
583
+ $(foreach host,$(CFG_HOST), \
584
+ $(eval $(foreach stage,1 2 3, \
452
585
$(eval $(call DEF_RUSTC_STAGE_TARGET,$(host),$(stage))))))
453
586
454
587
rustc-stage1 : rustc-stage1-H-$(CFG_BUILD )
@@ -484,7 +617,7 @@ CFG_INFO := $(info cfg: *** compiler is in snapshot transition ***)
484
617
CFG_INFO := $(info cfg: *** stage2 and later will not be built *** )
485
618
CFG_INFO := $(info cfg:)
486
619
487
- # FIXME This is surely busted
620
+ # XXX This is surely busted
488
621
all : $(SREQ1$(CFG_BUILD ) ) $(GENERATED ) docs
489
622
490
623
else
@@ -549,6 +682,7 @@ include $(CFG_SRC_DIR)mk/target.mk
549
682
include $(CFG_SRC_DIR ) mk/host.mk
550
683
include $(CFG_SRC_DIR ) mk/stage0.mk
551
684
include $(CFG_SRC_DIR ) mk/rustllvm.mk
685
+ include $(CFG_SRC_DIR ) mk/tools.mk
552
686
include $(CFG_SRC_DIR ) mk/docs.mk
553
687
include $(CFG_SRC_DIR ) mk/llvm.mk
554
688
0 commit comments