This commit is contained in:
Motiejus Jakštys 2024-11-03 23:44:29 +02:00
parent 1efdfdeb70
commit b40d7751a4

7
run
View File

@ -115,6 +115,7 @@ step00() {
step10() {
echo "Generating zig1.wasm.zst for $BOUNDFN"
rm -fr ../zig-$BOUNDFN
git archive --prefix=zig-$BOUNDFN/ $BOUNDFN | tar -C .. -x --exclude="stage1/zig1.wasm*"
{
@ -136,6 +137,7 @@ step10() {
step20() {
echo "Generating zig1.wasm.zst for $C_AARCH64"
rm -fr ../zig-$BOUNDFN
git archive --prefix=zig-$C_AARCH64/ $C_AARCH64 | tar -C .. -x --exclude="stage1/zig1.wasm*"
{
@ -159,6 +161,7 @@ generic() {
local TO="$2"
echo "Updating zig1.wasm from $FROM -> $TO in ../zig-$TO"
rm -fr "../zig-$TO"
git archive --prefix="zig-$TO/" "$TO" | tar -C .. -x --exclude="stage1/zig1.wasm"
{
@ -182,6 +185,6 @@ if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
step00
step10
step20
generic "$C_AARCH64" "$CALL_CHANGES"
generic "$CALL_CHANGES" "$BUILTIN_TYPE"
#generic "$C_AARCH64" "$CALL_CHANGES" # https://ziggit.dev/t/building-self-hosted-from-the-original-c-implementation/6607/10?u=motiejus
#generic "$CALL_CHANGES" "$BUILTIN_TYPE" # later
fi