1
Fork 0
This commit is contained in:
Motiejus Jakštys 2024-11-09 19:27:04 +02:00
parent 39fdefe34f
commit 4bfaf937e9
1 changed files with 27 additions and 0 deletions

27
run
View File

@ -604,6 +604,32 @@ step25() {
} }
} }
# commit 22c6b6c9a9378aaca75c83c2182a6d94298f6bc2
# Author: Matthew Lugg <mlugg@mlugg.co.uk>
# Date: 2023-06-14T03:09:23+03:00
#
# Update zig1.wasm
#
# This is needed in order to remove math.{min,max} from std in favour of
# the builtins, since the builtins need the behavior fix from the previous
# commit.
#
# Note from Andrew: I updated this commit with zig1.wasm built by me.
#
STEP26=22c6b6c9a9378aaca75c83c2182a6d94298f6bc2
STEP26_=0.10.0-3660-g22c6b6c9a9
step26() {
rm -fr "../zig-$STEP26_"
git archive --prefix=zig-$STEP26_/ $STEP26 | tar -C .. -x
{
pushd "../zig-$STEP26_"
cp ../zig-$STEP25_/stage1/zig1.wasm stage1/zig1.wasm
halfbuild 16
build/zig2 build update-zig1
popd
}
}
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
set -xeuo pipefail set -xeuo pipefail
step=${1:-step00} step=${1:-step00}
@ -636,4 +662,5 @@ if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
if [[ "$step" -le 23 ]]; then step23; fi if [[ "$step" -le 23 ]]; then step23; fi
if [[ "$step" -le 24 ]]; then step24; fi if [[ "$step" -le 24 ]]; then step24; fi
if [[ "$step" -le 25 ]]; then step25; fi if [[ "$step" -le 25 ]]; then step25; fi
if [[ "$step" -le 26 ]]; then step26; fi
fi fi