X-Git-Url: https://skaterift.com/git/?p=convexer.git;a=blobdiff_plain;f=build.sh;h=a20dc3ea2503fbad4408856298803e7440e31147;hp=6cf104cdab8285be63d89bdbb367b719fc65daf5;hb=HEAD;hpb=2b81894272ade16dbe3f71514e8eb25b2962bf9e diff --git a/build.sh b/build.sh index 6cf104c..a20dc3e 100755 --- a/build.sh +++ b/build.sh @@ -65,7 +65,7 @@ fi mkdir -p nbvtf/obj compile $C -O1 -ggdb -fPIC -shared \ -Wall -Wno-unused-variable -Wno-unused-function -std=c99 -pedantic \ - -DCXR_SO -DCXR_DEBUG -DCXR_VALVE_MAP_FILE \ + -DCXR_SO -DCXR_DEBUG -DCXR_VALVE_MAP_FILE -DCXR_VALVE_BIN \ -xc cxr/cxr.h \ -o libcxr$lib_ext \ -lm @@ -96,8 +96,9 @@ compile $C -O3 \ -lm # This is for testing with asan on linux -# compile gcc -ggdb -O1 -Wall \ -# -Wno-unused-variable -Wno-unused-function $asan -Werror=vla \ -# cxr/test.c \ -# -o test$exe_ext \ -# -lm +compile $C -ggdb -O0 -Wall \ + -Wno-unused-variable -Wno-unused-function $asan -Werror=vla \ + -DCXR_SO -DCXR_DEBUG -DCXR_VALVE_MAP_FILE \ + cxr/test.c \ + -o test$exe_ext \ + -lm