Skip to content

Commit

Permalink
Update: Build Script changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zakarouf committed May 11, 2022
1 parent f46a416 commit c4a442a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime


folderIgnore={"NULL", "examples", "docs"}
folderIgnore={"NULL", "examples", "docs", "spec", "build"}

IgnoreNames={"main-si.c", "test_.c", "rough.c", "test_preview.c", "gen_print_first_df.c", "main_l.c"}

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion make-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ mkdir build
mkdir ./build/lib
mv "$OUT" ./build/lib/

sh extract-headers.sh
sh make-headers.sh

6 changes: 4 additions & 2 deletions make-test.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
echo "Initiating Test"
sh ./make-lib.sh

CC=gcc
echo "Making Test"
CC=clang
SRC="./test"
LIB="./build/lib/libzkcollection.a"
OUT="./build/test"
CFILES="$(find $SRC -name '*.c')"

CFLAGS="-std=c99 -ggdb -fopenmp -ftrack-macro-expansion=2 -fsanitize=address -O3"
CFLAGS="-std=c99 -ggdb -fsanitize=address -O3"

ERRFLAGS="-Wextra -Wall"

$CC $CFLAGS $ERRFLAGS $CFILES $LIB -o $OUT

echo "Running Test"
cd build
./test

Expand Down

0 comments on commit c4a442a

Please sign in to comment.