diff options
Diffstat (limited to '')
| -rwxr-xr-x | bootstrap.sh | 19 |
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 |