Update compile script
This commit is contained in:
parent
40d301fd95
commit
0617ca2316
6
compile
6
compile
@ -16,7 +16,7 @@ while [[ $# > 0 ]];do
|
|||||||
done
|
done
|
||||||
|
|
||||||
CC=clang
|
CC=clang
|
||||||
CFLAGS="-Wall -Werror -pedantic "
|
CFLAGS="-Wall -Werror -pedantic"
|
||||||
LIBFLAGS="-fPIC -shared"
|
LIBFLAGS="-fPIC -shared"
|
||||||
|
|
||||||
INCLUDE="$(find src -type d | xargs -I{} echo -n "-I{} ")"
|
INCLUDE="$(find src -type d | xargs -I{} echo -n "-I{} ")"
|
||||||
@ -32,9 +32,9 @@ fi
|
|||||||
mkdir -p $BUILD_DIR
|
mkdir -p $BUILD_DIR
|
||||||
|
|
||||||
if [[ $BUILD_TYPE == "release" ]]; then
|
if [[ $BUILD_TYPE == "release" ]]; then
|
||||||
CFLAGS+="-O3"
|
CFLAGS+=" -O3"
|
||||||
else
|
else
|
||||||
CFLAGS+="-g -fsanitize=address -fsanitize=undefined"
|
CFLAGS+=" -g -fsanitize=address -fsanitize=undefined"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OUT="$BUILD_DIR/libwapp.so"
|
OUT="$BUILD_DIR/libwapp.so"
|
||||||
|
Loading…
Reference in New Issue
Block a user