Disable asserts in llvm by default
This gives a 25% speedup. As long as the llvm version has been reasonably tested, this should hopefully be safe.
This commit is contained in:
1 parent
784c15f9b9
commit
81864b3883
1 file changed
+4
-4
+4
-4
@@ -2,23 +2,23 @@
|
||||
|
||||
set -e
|
||||
|
||||
ASSERTS=ON
|
||||
ASSERTS=OFF
|
||||
BUILDDIR=build
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
if [ "$1" = "--disable-asserts" ]; then
|
||||
ASSERTS=OFF
|
||||
BUILDDIR=build-noasserts
|
||||
BUILDDIR=build
|
||||
elif [ "$1" = "--enable-asserts" ]; then
|
||||
ASSERTS=ON
|
||||
BUILDDIR=build
|
||||
BUILDDIR=build-asserts
|
||||
else
|
||||
PREFIX="$1"
|
||||
fi
|
||||
shift
|
||||
done
|
||||
if [ -z "$PREFIX" ]; then
|
||||
echo $0 [--disable-asserts] dest
|
||||
echo $0 [--enable-asserts] dest
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user