From 7b67ab3d6fbc74c95f35b992286cb98492c8b433 Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Wed, 6 Sep 2023 14:05:17 -0500 Subject: restructured filetree --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build.sh') 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 -- cgit v1.2.3