about summary refs log tree commit diff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-07-15 17:34:39 +0200
committerBaitinq <[email protected]>2025-07-15 18:00:31 +0200
commitcc56ed42486c2636af50bae451825ad90cfd4b6c (patch)
tree2307d6ced51f427405e4152b4ff1493e245a6b30 /bootstrap.sh
parentBoostrap: Support generating LLVM IR file (diff)
downloadpry-lang-cc56ed42486c2636af50bae451825ad90cfd4b6c.tar.gz
pry-lang-cc56ed42486c2636af50bae451825ad90cfd4b6c.tar.bz2
pry-lang-cc56ed42486c2636af50bae451825ad90cfd4b6c.zip
Finish bootstrapping :^)
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index e924714..c95decf 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,20 +1,20 @@
 #!/bin/sh
 
 echo "Cleaning up previous builds..."
-rm -f stage1 stage2 stage3 output.o bootstrap_output.o
+rm -f stage1 stage2 stage3 output.o bootstrap_output.o bootstrap/output.s
 
 echo "Building stage 0..."
 
-zig build
+llc bootstrap/output.ll && cc $(llvm-config --libs) bootstrap/output.s -o stage0
 
 echo "Building stage 1..."
 
-./zig-out/bin/pry-lang src/bootstrap/main.pry && cc $(llvm-config --libs) output.o -o stage1
+./stage0 src/main.pry && cc $(llvm-config --libs) bootstrap_output.o -o stage1
 
 echo "Building stage 2..."
 
-./stage1 src/bootstrap/main.pry && cc $(llvm-config --libs) bootstrap_output.o -o stage2
+./stage1 src/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
+./stage2 src/main.pry && cc $(llvm-config --libs) bootstrap_output.o -o stage3