1
Fork 0

step29, 30

This commit is contained in:
Motiejus Jakštys 2024-11-09 23:43:10 +02:00
parent edbb6e0872
commit 4c8aa66600
1 changed files with 33 additions and 28 deletions

61
run
View File

@ -663,7 +663,24 @@ step28() {
pushd "../zig-$STEP28_" pushd "../zig-$STEP28_"
cp ../zig-$STEP27_/stage1/zig1.wasm stage1/zig1.wasm cp ../zig-$STEP27_/stage1/zig1.wasm stage1/zig1.wasm
halfbuild 16 halfbuild 16
build/zig2 build update-zig1 popd
}
}
# commit be0c69957e7489423606023ad820599652a60e15
# Author: Matthew Lugg <mlugg@mlugg.co.uk>
# Date: 2023-06-20T15:39:35+03:00
#
# compiler: remove destination type from cast builtins
#
STEP29=be0c69957e7489423606023ad820599652a60e15
STEP29_=0.10.0-3807-gbe0c69957e
step29() {
rm -fr "../zig-$STEP29_"
git archive --prefix=zig-$STEP29_/ $STEP29 | tar -C .. -x
{
pushd "../zig-$STEP29_"
../zig-$STEP28_/build/zig2 build --zig-lib-dir lib update-zig1
popd popd
} }
} }
@ -677,33 +694,19 @@ step28() {
# Needed due to the breaking changes to casting builtins, which are used # Needed due to the breaking changes to casting builtins, which are used
# by the compiler when building itself. # by the compiler when building itself.
# #
#STEP28_A=21ac0beb436f49fe49c6982a872f2dc48e4bea5e STEP30=21ac0beb436f49fe49c6982a872f2dc48e4bea5e
#STEP28_=0.10.0-3813-g21ac0beb43 STEP30_=0.10.0-3813-g21ac0beb43
step30() {
# One commit before changing cast builtin syntax: rm -fr "../zig-$STEP30_"
# git archive --prefix=zig-$STEP30_/ $STEP30 | tar -C .. -x
# commit 447ca4e3fff021f471b748187b53f0a4744ad0bc {
# Author: Matthew Lugg <mlugg@mlugg.co.uk> pushd "../zig-$STEP30_"
# Date: 2023-06-23T00:40:13+03:00 cp ../zig-$STEP29_/stage1/zig1.wasm stage1/zig1.wasm
# halfbuild 16
# translate-c: update to new cast builtin syntax build/zig2 build update-zig1
# popd
#STEP28_B=447ca4e3fff021f471b748187b53f0a4744ad0bc }
#step28() { }
# rm -fr "../zig-$STEP28_"
# git archive --prefix=zig-$STEP28_/ $STEP28_A | tar -C .. -x
# mv ../zig-$STEP28_/lib ../zig-$STEP28_/lib.bk
# git archive --prefix=zig-$STEP28_/ $STEP28_B lib | tar -C .. -x
# {
# pushd "../zig-$STEP28_"
# cp ../zig-$STEP27_/stage1/zig1.wasm stage1/zig1.wasm
# halfbuild 16
# rm -fr lib
# mv lib.bk lib
# build/zig2 build update-zig1
# popd
# }
#}
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
set -xeuo pipefail set -xeuo pipefail
@ -740,4 +743,6 @@ if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
if [[ "$step" -le 26 ]]; then step26; fi if [[ "$step" -le 26 ]]; then step26; fi
if [[ "$step" -le 27 ]]; then step27; fi if [[ "$step" -le 27 ]]; then step27; fi
if [[ "$step" -le 28 ]]; then step28; fi if [[ "$step" -le 28 ]]; then step28; fi
if [[ "$step" -le 29 ]]; then step29; fi
if [[ "$step" -le 30 ]]; then step30; fi
fi fi