Skip to content

Commit b7875e3

Browse files
committed
update build.sh
1 parent d518214 commit b7875e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -xe
44
NAME=gson
5-
CCFLAGS="-DDEBUG=0 -Wall -g"
5+
CCFLAGS="-DDEBUG=0 -Wall -g -O3"
66

77
compile_lib() {
88
gcc $CCFLAGS -c src/$NAME.c -o lib/$NAME.o
@@ -18,7 +18,7 @@ run_tests() {
1818

1919
if [ ! -z "$1" ] && [ "$1" == "clean" ]
2020
then
21-
rm -vf lib/lib$NAME.a lib/$NAME.o ./$NAME ./"$NAME"_tests
21+
rm -vf lib/lib$NAME.a lib/$NAME.o lib/debug.o ./$NAME ./"$NAME"_tests
2222
elif [ ! -z "$1" ] && [ "$1" == "test" ]
2323
then
2424
run_tests 2>/dev/null

lib/debug.o

-10.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)