From 81864b38831ca9099a9c95bc3d6e5d7e87ed2999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 2 Oct 2018 08:34:04 +0300 Subject: [PATCH] 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. --- build-llvm.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build-llvm.sh b/build-llvm.sh index 6781856..da3a70f 100755 --- a/build-llvm.sh +++ b/build-llvm.sh @@ -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