blob: d4d648d4ba2dde694e3b1681156b53ee939c8262 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# Build Sloth
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
# Generate binary
clang stdio.o std/stdio.c stdlib.o std/stdlib.c stdmath.o std/stdmath.c main.o -o program
|