summaryrefslogtreecommitdiff
path: root/build_and_test.sh
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-29 12:12:08 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-29 12:12:08 +0200
commit262d062e1c77d201a0e76d4bc615541a3dc87aeb (patch)
tree40396764f29358992bb0c37a6e707f08dfc36c3f /build_and_test.sh
parent97ee833f60fd378e519421d17458ea743904e96b (diff)
downloadsaw-262d062e1c77d201a0e76d4bc615541a3dc87aeb.zip
UI: Instrument settings
Diffstat (limited to 'build_and_test.sh')
-rw-r--r--build_and_test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build_and_test.sh b/build_and_test.sh
index 0b40374..3ec7361 100644
--- a/build_and_test.sh
+++ b/build_and_test.sh
@@ -92,7 +92,7 @@ esac
if [ "$COMPILE" = "gcc" ] || [ "$COMPILE" = "clang" ]; then
if [ "$1" = "release" ]; then
- FLAGS="-O3"
+ FLAGS="-O3 -DNDEBUG"
elif [ "$COMPILE" = "gcc" ] && [ "$OS" != "Windows" ]; then
FLAGS="-O0 -fsanitize=undefined,address,leak"
elif [ "$OS" != "Windows" ]; then
@@ -102,7 +102,7 @@ if [ "$COMPILE" = "gcc" ] || [ "$COMPILE" = "clang" ]; then
fi
else
if [ "$1" = "release" ]; then
- FLAGS="-O2"
+ FLAGS="-O2 -DNDEBUG"
else
FLAGS="-Od"
fi