Default to disable-sanitizers

This commit is contained in:
Raymond Li 2021-03-30 17:16:02 -04:00 committed by GitHub
parent 085df46f42
commit 24e0799c77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 2 deletions

View File

@ -1,4 +1,20 @@
#!/bin/bash
#!/bin/sh -x
configureOpts="--disable-sanitizers"
while getopts ":hd" opt; do
case ${opt} in
h ) echo "Use -d to turn on sanitizers (for debugging only)"
exit;;
d ) configureOpts=""
;;
\? ) echo "Usage: $0 [-h] [-d]"
exit;;
esac
done
configureOpts="${configureOpts} --prefix=/usr --sysconfdir=/etc"
autoreconf -fiv
BUILD_DIR=build/
@ -6,6 +22,6 @@ rm -rf $BUILD_DIR
mkdir -vp $BUILD_DIR
cd $BUILD_DIR || { echo "cd $BUILD_DIR"; exit 127; }
../configure --prefix=/usr --sysconfdir=/etc
../configure ${configureOpts}
make