Skip to content

Commit 13781f3

Browse files
committed
retool serializer to be built by stage0 rustc
1 parent 274c970 commit 13781f3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

mk/clean.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ clean$(1)_H_$(2):
6464
$(Q)rm -f $$(HBIN$(1)_H_$(2))/rustc$(X)
6565
$(Q)rm -f $$(HBIN$(1)_H_$(2))/fuzzer$(X)
6666
$(Q)rm -f $$(HBIN$(1)_H_$(2))/cargo$(X)
67+
$(Q)rm -f $$(HBIN$(1)_H_$(2))/serializer$(X)
6768
$(Q)rm -f $$(HBIN$(1)_H_$(2))/rustdoc$(X)
6869
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(CFG_RUNTIME)
6970
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(CFG_CORELIB)
@@ -87,6 +88,7 @@ clean$(1)_T_$(2)_H_$(3):
8788
$(Q)rm -f $$(TBIN$(1)_T_$(2)_H_$(3))/rustc$(X)
8889
$(Q)rm -f $$(TBIN$(1)_T_$(2)_H_$(3))/fuzzer$(X)
8990
$(Q)rm -f $$(TBIN$(1)_T_$(2)_H_$(3))/cargo$(X)
91+
$(Q)rm -f $$(TBIN$(1)_T_$(2)_H_$(3))/serializer$(X)
9092
$(Q)rm -f $$(TBIN$(1)_T_$(2)_H_$(3))/rustdoc$(X)
9193
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_RUNTIME)
9294
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_CORELIB)

src/etc/gen-astencode

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ GEN_TYPES="syntax::ast::item syntax::ast::def middle::typeck::method_origin \
55
middle::freevars::freevar_entry syntax::ast::def_id"
66

77
# Find serializer tool:
8-
for S in build/*/stage2/bin/serializer; do
8+
for S in build/*/stage1/bin/serializer; do
9+
10+
if [ ! -x "$S" ]; then
11+
echo "serializer excutable not found; try 'make serializer'"
12+
exit 1
13+
fi
914

1015
# Find rustc:
1116
D=$(dirname "$S")
12-
R="${D}/rustc"
17+
R="${D}/../../stage0/bin/rustc"
1318
if [ ! -x "$R" ]; then
1419
echo "rustc not found or not executable at path '$R'"
1520
exit 1

0 commit comments

Comments
 (0)