blob: 760f2abfccc1580ab404e2ceb38a085eadf242cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# Build Sloth
#cargo build
FILENAME="$1"
# Compile standard library
./target/release/sloth std/extern.sloth std/stdmath.sloth std/stdio.sloth $FILENAME
# Generate binary
clang -lm output.o std/stdsocket.c std/stdio.c std/stdlib.c std/stdmath.c std/stdmem.c -o "${FILENAME%.sloth}"
# Move file
mv "${FILENAME%.sloth}" out/
rm output.o
|