Skip to content

Commit 49e59e4

Browse files
committed
Remove makefile CFG_USE_SNAP_LIBS_FOR_STAGE1 hack
It didn't work as intended, due to my lack of Makefile-fu
1 parent c9c5ee2 commit 49e59e4

File tree

2 files changed

+3
-30
lines changed

2 files changed

+3
-30
lines changed

Makefile.in

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ else
5757
CFG_STDLIB_DEFAULT = $(2)/$(CFG_STDLIB)
5858
endif
5959

60-
# Uncomment this to temporarily use the snapshot's runtime for stage1.
61-
# This is useful when making incompatible changes to the parts of the
62-
# runtime used directly by the compiler -- the binaries built by the
63-
# snapshot won't know about the changes yet. Don't leave this on. Turn
64-
# it on, shapshot, and turn it off again.
65-
CFG_USE_SNAP_LIBS_FOR_STAGE1 = 1
66-
6760
# version-string calculation
6861
CFG_GIT_DIR := $(CFG_SRC_DIR).git
6962
CFG_VERSION = prerelease

mk/stageN.mk

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@
88
# new rustrt in stage0/lib/.
99

1010
define LIBGEN
11-
12-
ifdef CFG_USE_SNAP_LIBS_FOR_STAGE1
13-
ifeq ($(2), 0)
14-
RUNTIME_SOURCE = stage0/$(CFG_RUNTIME)
15-
stage$(2)/lib/$$(CFG_STDLIB): stage0/$$(CFG_STDLIB)
16-
@$$(call E, cp: $$@)
17-
$$(Q)cp $$< $$@
18-
else
19-
RUNTIME_SOURCE = rt/$(CFG_RUNTIME)
2011
stage$(2)/lib/$$(CFG_STDLIB): $$(STDLIB_CRATE) $$(STDLIB_INPUTS) \
2112
stage$(2)/rustc$$(X) \
2213
stage$(2)/$$(CFG_RUNTIME) \
@@ -25,8 +16,6 @@ stage$(2)/lib/$$(CFG_STDLIB): $$(STDLIB_CRATE) $$(STDLIB_INPUTS) \
2516
$$(SREQ$(1))
2617
@$$(call E, compile_and_link: $$@)
2718
$$(STAGE$(2)) --lib -o $$@ $$<
28-
endif
29-
endif
3019

3120
stage$(2)/lib/libstd.rlib: $$(STDLIB_CRATE) $$(STDLIB_INPUTS) \
3221
stage$(2)/rustc$$(X) \
@@ -37,7 +26,7 @@ stage$(2)/lib/libstd.rlib: $$(STDLIB_CRATE) $$(STDLIB_INPUTS) \
3726
@$$(call E, compile_and_link: $$@)
3827
$$(STAGE$(2)) --lib --static -o $$@ $$<
3928

40-
stage$(2)/lib/$$(CFG_RUNTIME): $$(RUNTIME_SOURCE)
29+
stage$(2)/lib/$$(CFG_RUNTIME): rt/$$(CFG_RUNTIME)
4130
@$$(call E, cp: $$@)
4231
$$(Q)cp $$< $$@
4332

@@ -69,20 +58,11 @@ stage$(2)/rustc$$(X): $$(COMPILER_CRATE) $$(COMPILER_INPUTS) \
6958
@$$(call E, compile_and_link: $$@)
7059
$$(STAGE$(1)) -L stage$(2) -o $$@ $$<
7160

72-
RUNTIME_SOURCE = rt/$(CFG_RUNTIME)
73-
STDLIB_SOURCE = stage$(1)/lib/$$(CFG_STDLIB)
74-
ifdef CFG_USE_SNAP_LIBS_FOR_STAGE1
75-
ifeq ($(2), 1)
76-
RUNTIME_SOURCE = stage0/$(CFG_RUNTIME)
77-
STDLIB_SOURCE = stage0/$(CFG_STDLIB)
78-
endif
79-
endif
80-
81-
stage$(2)/$$(CFG_RUNTIME): $$(RUNTIME_SOURCE)
61+
stage$(2)/$$(CFG_RUNTIME): rt/$$(CFG_RUNTIME)
8262
@$$(call E, cp: $$@)
8363
$$(Q)cp $$< $$@
8464

85-
stage$(2)/$$(CFG_STDLIB): $$(STDLIB_SOURCE)
65+
stage$(2)/$$(CFG_STDLIB): stage$(1)/lib/$$(CFG_STDLIB)
8666
@$$(call E, cp: $$@)
8767
$$(Q)cp $$< $$@
8868

0 commit comments

Comments
 (0)