From 29bdd10ee3621ed875bfa34a0faa42c35a1e39ed Mon Sep 17 00:00:00 2001 From: nic-gaffney Date: Tue, 27 Jun 2023 01:59:59 -0500 Subject: Standard library methinks --- build.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index d4d648d..b8a9b9c 100755 --- a/build.sh +++ b/build.sh @@ -2,16 +2,7 @@ cargo build # Compile standard library -./target/debug/sloth std/stdio.sloth -mv output.o stdio.o -./target/debug/sloth std/stdlib.sloth -mv output.o stdlib.o -./target/debug/sloth std/stdmath.sloth -mv output.o stdmath.o - -# Compile user program -./target/debug/sloth "$1" -mv output.o main.o +./target/debug/sloth std/stdio.sloth std/stdlib.sloth std/stdmath.sloth "$1" # Generate binary -clang stdio.o std/stdio.c stdlib.o std/stdlib.c stdmath.o std/stdmath.c main.o -o program +clang output.o std/stdio.c std/stdlib.c std/stdmath.c -o program -- cgit v1.2.3