This commit is contained in:
Motiejus Jakštys 2024-11-06 19:50:17 +02:00
parent ec951535ae
commit d942dc7337

30
run
View File

@ -98,7 +98,7 @@ fullbuild() {
popd
}
step00() {
step0() {
git checkout $MERGE_WASI_BOOTSTRAP
git revert --no-edit $REMOVE_STAGE1
@ -128,7 +128,7 @@ step00() {
echo "Zig bootstrapped from selfhosted."
}
step10() {
step1() {
local TO="$BOUNDFN"
local TO_="$BOUNDFN_"
echo "Generating zig1.wasm.zst for $TO_"
@ -146,7 +146,7 @@ step10() {
echo "zig1.wasm.zst was built for BoundFn hack"
}
step20() {
step2() {
local FROM="$BOUNDFN"
local FROM_="$BOUNDFN_"
local TO="$C_AARCH64"
@ -165,7 +165,7 @@ step20() {
echo "zig1.wasm.zst was built for C-aarch64 backend"
}
step30() {
step3() {
local FROM="$C_AARCH64"
local FROM_="$C_AARCH64_"
local TO="$CALL_OPTIONS"
@ -184,7 +184,7 @@ step30() {
echo "zig1.wasm updated for $TO"
}
step40() {
step4() {
local FROM="$CALL_OPTIONS"
local FROM_="$CALL_OPTIONS_"
local TO="$CALL_USAGES"
@ -204,7 +204,7 @@ step40() {
echo "zig1.wasm updated for $TO_"
}
step50() {
step5() {
local FROM="$CALL_USAGES"
local FROM_="$CALL_USAGES_"
local TO="$BUILTIN_TYPE"
@ -221,7 +221,7 @@ step50() {
}
}
step60() {
step6() {
local FROM="$BUILTIN_TYPE"
local FROM_="$BUILTIN_TYPE_"
local TO="$REMOVE_BUILTIN_TYPE"
@ -240,15 +240,15 @@ step60() {
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
set -xeuo pipefail
step=${1:-step00}
step=${1:-step0}
step=${step#step}
# works:
if [[ "$step" -le 00 ]] ; then step00; fi
if [[ "$step" -le 10 ]] ; then step10; fi
if [[ "$step" -le 20 ]] ; then step20; fi
if [[ "$step" -le 30 ]] ; then step30; fi
if [[ "$step" -le 40 ]] ; then step40; fi
if [[ "$step" -le 50 ]] ; then step50; fi
if [[ "$step" -le 60 ]] ; then step60; fi
if [[ "$step" -le 00 ]] ; then step0; fi
if [[ "$step" -le 10 ]] ; then step1; fi
if [[ "$step" -le 20 ]] ; then step2; fi
if [[ "$step" -le 30 ]] ; then step3; fi
if [[ "$step" -le 40 ]] ; then step4; fi
if [[ "$step" -le 50 ]] ; then step5; fi
if [[ "$step" -le 60 ]] ; then step6; fi
fi