about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-07-15 16:40:37 +0200
committerBaitinq <[email protected]>2025-07-15 17:22:41 +0200
commitfdfa94b29abac94107347be579a452184ba4f415 (patch)
tree27b23d92254d43fa56e790e8adc46969285df467
parentMisc: Rename zig project (diff)
downloadpry-lang-fdfa94b29abac94107347be579a452184ba4f415.tar.gz
pry-lang-fdfa94b29abac94107347be579a452184ba4f415.tar.bz2
pry-lang-fdfa94b29abac94107347be579a452184ba4f415.zip
Boostrap: Improve boostrap script
-rwxr-xr-xbootstrap.sh19
1 files changed, 18 insertions, 1 deletions
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