mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
retool serializer to be built by stage0 rustc
This commit is contained in:
parent
274c9708f0
commit
13781f3d8d
@ -64,6 +64,7 @@ clean$(1)_H_$(2):
|
||||
$(Q)rm -f $$(HBIN$(1)_H_$(2))/rustc$(X)
|
||||
$(Q)rm -f $$(HBIN$(1)_H_$(2))/fuzzer$(X)
|
||||
$(Q)rm -f $$(HBIN$(1)_H_$(2))/cargo$(X)
|
||||
$(Q)rm -f $$(HBIN$(1)_H_$(2))/serializer$(X)
|
||||
$(Q)rm -f $$(HBIN$(1)_H_$(2))/rustdoc$(X)
|
||||
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(CFG_RUNTIME)
|
||||
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(CFG_CORELIB)
|
||||
@ -87,6 +88,7 @@ clean$(1)_T_$(2)_H_$(3):
|
||||
$(Q)rm -f $$(TBIN$(1)_T_$(2)_H_$(3))/rustc$(X)
|
||||
$(Q)rm -f $$(TBIN$(1)_T_$(2)_H_$(3))/fuzzer$(X)
|
||||
$(Q)rm -f $$(TBIN$(1)_T_$(2)_H_$(3))/cargo$(X)
|
||||
$(Q)rm -f $$(TBIN$(1)_T_$(2)_H_$(3))/serializer$(X)
|
||||
$(Q)rm -f $$(TBIN$(1)_T_$(2)_H_$(3))/rustdoc$(X)
|
||||
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_RUNTIME)
|
||||
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_CORELIB)
|
||||
|
@ -5,11 +5,16 @@ GEN_TYPES="syntax::ast::item syntax::ast::def middle::typeck::method_origin \
|
||||
middle::freevars::freevar_entry syntax::ast::def_id"
|
||||
|
||||
# Find serializer tool:
|
||||
for S in build/*/stage2/bin/serializer; do
|
||||
for S in build/*/stage1/bin/serializer; do
|
||||
|
||||
if [ ! -x "$S" ]; then
|
||||
echo "serializer excutable not found; try 'make serializer'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Find rustc:
|
||||
D=$(dirname "$S")
|
||||
R="${D}/rustc"
|
||||
R="${D}/../../stage0/bin/rustc"
|
||||
if [ ! -x "$R" ]; then
|
||||
echo "rustc not found or not executable at path '$R'"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user