@@ -124,6 +124,12 @@ 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
127
133
128
134
# The executables crated during this compilation process have no need to include
129
135
# static copies of libstd and libextra. We also generate dynamic versions of all
@@ -216,72 +222,27 @@ GENERATED :=
216
222
217
223
218
224
# #####################################################################
219
- # Crates
225
+ # Cleaning out old crates
220
226
# #####################################################################
221
227
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
-
265
228
# $(1) is the path for directory to match against
266
229
# $(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)
269
230
#
270
231
# Note that a common bug is to accidentally construct the glob denoted
271
232
# by $(2) with a space character prefix, which invalidates the
272
233
# construction $(1)$(2).
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
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
275
236
endef
276
237
277
238
# Same interface as above, but deletes rather than just listing the files.
278
239
ifdef VERBOSE
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
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
281
242
endef
282
243
else
283
- define REMOVE_ALL_OLD_GLOB_MATCHES_EXCEPT
284
- $(Q ) MATCHES="$(filter-out % $( 3 ) , $( wildcard $(1 ) / $( 2 ) ) ) "; if [ -n "$$MATCHES" ] ; then rm $$MATCHES ; fi
244
+ define REMOVE_ALL_OLD_GLOB_MATCHES
245
+ $(Q ) MATCHES="$(wildcard $(1 ) ) "; if [ -n "$$MATCHES" ] ; then rm $$MATCHES ; fi
285
246
endef
286
247
endif
287
248
@@ -292,72 +253,15 @@ endif
292
253
# soon. (This is in contrast to the macros above, which are meant to
293
254
# be run at the outset of a command list in a rule.)
294
255
ifdef VERBOSE
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 )
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 )
298
259
endef
299
260
else
300
- define LIST_ALL_OLD_GLOB_MATCHES_EXCEPT
261
+ define LIST_ALL_OLD_GLOB_MATCHES
301
262
endef
302
263
endif
303
264
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
-
361
265
# #####################################################################
362
266
# LLVM macros
363
267
# #####################################################################
@@ -418,14 +322,12 @@ export CFG_RUSTLIBDIR
418
322
export CFG_LIBDIR_RELATIVE
419
323
export CFG_DISABLE_INJECT_STD_VERSION
420
324
421
- # #####################################################################
422
- # Subprograms
423
- # #####################################################################
424
-
425
325
# #####################################################################
426
326
# Per-stage targets and runner
427
327
# #####################################################################
428
328
329
+ include $(CFG_SRC_DIR ) mk/crates.mk
330
+
429
331
define SREQ
430
332
# $(1) is the stage number
431
333
# $(2) is the target triple
@@ -441,84 +343,37 @@ TROOT$(1)_T_$(2)_H_$(3) = $$(HLIB$(1)_H_$(3))/$$(CFG_RUSTLIBDIR)/$(2)
441
343
TBIN$(1 ) _T_$(2 ) _H_$(3 ) = $$(TROOT$(1 ) _T_$(2 ) _H_$(3 ) ) /bin
442
344
TLIB$(1 ) _T_$(2 ) _H_$(3 ) = $$(TROOT$(1 ) _T_$(2 ) _H_$(3 ) ) /lib
443
345
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
-
475
346
# Preqrequisites for using the stageN compiler
476
347
ifeq ($(1 ) ,0)
477
348
HSREQ$(1)_H_$(3) = $$(HBIN$(1 ) _H_$(3 ) ) /rustc$$(X_$(3 ) )
478
349
else
479
350
HSREQ$(1)_H_$(3) = \
480
351
$$(HBIN$(1 ) _H_$(3 ) ) /rustc$$(X_$(3 ) ) \
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 ) ) \
352
+ $$(HLIB$(1 ) _H_$(3 ) ) /stamp.rustc \
353
+ $$(foreach dep,$$(RUST_DEPS_rustc ) ,$$(HLIB$(1 ) _H_$(3 ) ) /stamp.$$(dep ) ) \
488
354
$$(MKFILE_DEPS )
489
355
endif
490
356
491
357
# Prerequisites for using the stageN compiler to build target artifacts
492
358
TSREQ$(1 ) _T_$(2 ) _H_$(3 ) = \
493
359
$$(HSREQ$(1 ) _H_$(3 ) ) \
494
- $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_RUNTIME_$(2 ) ) \
495
360
$$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /libmorestack.a
496
361
497
- # Prerequisites for a working stageN compiler and libraries, for a specific target
362
+ # Prerequisites for a working stageN compiler and libraries, for a specific
363
+ # target
498
364
SREQ$(1 ) _T_$(2 ) _H_$(3 ) = \
499
365
$$(TSREQ$(1 ) _T_$(2 ) _H_$(3 ) ) \
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 ) )
366
+ $$(foreach dep,$$(TARGET_CRATES ) ,\
367
+ $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /stamp.$$(dep ) )
505
368
506
- # Prerequisites for a working stageN compiler and libraries, for a specific target
369
+ # Prerequisites for a working stageN compiler and complete set of target
370
+ # libraries
507
371
CSREQ$(1 ) _T_$(2 ) _H_$(3 ) = \
508
372
$$(TSREQ$(1 ) _T_$(2 ) _H_$(3 ) ) \
509
373
$$(HBIN$(1 ) _H_$(3 ) ) /rustpkg$$(X_$(3 ) ) \
510
374
$$(HBIN$(1 ) _H_$(3 ) ) /rustdoc$$(X_$(3 ) ) \
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 ) )
375
+ $$(foreach dep,$$(CRATES ) ,$$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /stamp.$$(dep ) ) \
376
+ $$(foreach dep,$$(HOST_CRATES ) ,$$(HLIB$(1 ) _H_$(3 ) ) /stamp.$$(dep ) )
522
377
523
378
ifeq ($(1 ) ,0)
524
379
# Don't run the the stage0 compiler under valgrind - that ship has sailed
@@ -541,17 +396,30 @@ CFGFLAG$(1)_T_$(2)_H_$(3) = stage1
541
396
endif
542
397
endif
543
398
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
+
544
411
STAGE$(1 ) _T_$(2 ) _H_$(3 ) := \
545
- $$(Q )$$(call CFG_RUN_TARG_$(3 ) ,$(1 ) , \
546
- $$(CFG_VALGRIND_COMPILE$(1 ) ) \
412
+ $$(Q )$$(RPATH_VAR$(1 ) _T_$(2 ) _H_$(3 ) ) \
413
+ $$(call CFG_RUN_TARG_$(3 ) ,$(1 ) , \
414
+ $$(CFG_VALGRIND_COMPILE$(1 ) ) \
547
415
$$(HBIN$(1 ) _H_$(3 ) ) /rustc$$(X_$(3 ) ) \
548
416
--cfg $$(CFGFLAG$(1 ) _T_$(2 ) _H_$(3 ) ) \
549
417
$$(CFG_RUSTC_FLAGS ) $$(EXTRAFLAGS_STAGE$(1 ) ) --target=$(2 ) ) \
550
418
$$(RUSTC_FLAGS_$(2 ) )
551
419
552
- PERF_STAGE$(1 ) _T_$(2 ) _H_$(3 ) := \
420
+ PERF_STAGE$(1 ) _T_$(2 ) _H_$(3 ) := \
553
421
$$(Q )$$(call CFG_RUN_TARG_$(3 ) ,$(1 ) , \
554
- $$(CFG_PERF_TOOL ) \
422
+ $$(CFG_PERF_TOOL ) \
555
423
$$(HBIN$(1 ) _H_$(3 ) ) /rustc$$(X_$(3 ) ) \
556
424
--cfg $$(CFGFLAG$(1 ) _T_$(2 ) _H_$(3 ) ) \
557
425
$$(CFG_RUSTC_FLAGS ) $$(EXTRAFLAGS_STAGE$(1 ) ) --target=$(2 ) ) \
@@ -575,13 +443,12 @@ define DEF_RUSTC_STAGE_TARGET
575
443
# $(2) == stage
576
444
577
445
rustc-stage$(2 ) -H-$(1 ) : \
578
- $$(foreach target,$$(CFG_TARGET ) , \
579
- $$(SREQ$(2 ) _T_$$(target ) _H_$(1 ) ) )
446
+ $$(foreach target,$$(CFG_TARGET ) ,$$(SREQ$(2 ) _T_$$(target ) _H_$(1 ) ) )
580
447
581
448
endef
582
449
583
- $(foreach host,$(CFG_HOST), \
584
- $(eval $(foreach stage,1 2 3, \
450
+ $(foreach host,$(CFG_HOST), \
451
+ $(eval $(foreach stage,1 2 3, \
585
452
$(eval $(call DEF_RUSTC_STAGE_TARGET,$(host),$(stage))))))
586
453
587
454
rustc-stage1 : rustc-stage1-H-$(CFG_BUILD )
@@ -617,7 +484,7 @@ CFG_INFO := $(info cfg: *** compiler is in snapshot transition ***)
617
484
CFG_INFO := $(info cfg: *** stage2 and later will not be built *** )
618
485
CFG_INFO := $(info cfg:)
619
486
620
- # XXX This is surely busted
487
+ # FIXME This is surely busted
621
488
all : $(SREQ1$(CFG_BUILD ) ) $(GENERATED ) docs
622
489
623
490
else
@@ -682,7 +549,6 @@ include $(CFG_SRC_DIR)mk/target.mk
682
549
include $(CFG_SRC_DIR ) mk/host.mk
683
550
include $(CFG_SRC_DIR ) mk/stage0.mk
684
551
include $(CFG_SRC_DIR ) mk/rustllvm.mk
685
- include $(CFG_SRC_DIR ) mk/tools.mk
686
552
include $(CFG_SRC_DIR ) mk/docs.mk
687
553
include $(CFG_SRC_DIR ) mk/llvm.mk
688
554
0 commit comments