diff options
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -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 |
