aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2023-09-06 14:05:17 -0500
committerNic Gaffney <gaffney_nic@protonmail.com>2023-09-06 14:05:17 -0500
commit7b67ab3d6fbc74c95f35b992286cb98492c8b433 (patch)
treef72f431afaa17033a9651fbbc989bd7ec34813de /build.sh
parent739421c86f5fabfef5c765beea7741a7409976d7 (diff)
downloadsloth-7b67ab3d6fbc74c95f35b992286cb98492c8b433.tar.gz
restructured filetree
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index f6ad2e3..2bdd204 100755
--- a/build.sh
+++ b/build.sh
@@ -1,12 +1,12 @@
# Build Sloth
cargo build
-rm output.o
FILENAME="$1"
# Compile standard library
./target/debug/sloth std/extern.sloth std/stdmath.sloth std/stdio.sloth $FILENAME
# Generate binary
-clang --verbose -lm output.o std/stdio.c std/stdlib.c std/stdmath.c -o "${FILENAME%.sloth}"
+clang -lm output.o std/stdio.c std/stdlib.c std/stdmath.c -o "${FILENAME%.sloth}"
# Move file
-mv "${FILENAME%.sloth}" .
+mv "${FILENAME%.sloth}" out/
+rm output.o