From fdfa94b29abac94107347be579a452184ba4f415 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Tue, 15 Jul 2025 16:40:37 +0200 Subject: Boostrap: Improve boostrap script --- bootstrap.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index 6bcfacd..e924714 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,3 +1,20 @@ #!/bin/sh -zig build run -- src/bootstrap/main.pry && cc $(llvm-config --libs) output.o -o stage1 && ./stage1 src/bootstrap/main.pry && cc $(llvm-config --libs) bootstrap_output.o -o stage2 && ./stage2 src/bootstrap/main.pry && cc $(llvm-config --libs) bootstrap_output.o -o stage3 +echo "Cleaning up previous builds..." +rm -f stage1 stage2 stage3 output.o bootstrap_output.o + +echo "Building stage 0..." + +zig build + +echo "Building stage 1..." + +./zig-out/bin/pry-lang src/bootstrap/main.pry && cc $(llvm-config --libs) output.o -o stage1 + +echo "Building stage 2..." + +./stage1 src/bootstrap/main.pry && cc $(llvm-config --libs) bootstrap_output.o -o stage2 + +echo "Building stage 3..." + +./stage2 src/bootstrap/main.pry && cc $(llvm-config --libs) bootstrap_output.o -o stage3 -- cgit 1.4.1