about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-03-24 17:08:19 +0100
committerMichael Vetter <jubalh@iodoru.org>2021-03-24 17:08:19 +0100
commit5f7840bc3fc316a2b14a043cf65d5f7db32e0717 (patch)
treeb0cfa7ad0fb333908dbd8ab2f8f87694db41a232
parent18172f52608658f44b4c4a30d47e55a3b7537c93 (diff)
downloadprofani-tty-5f7840bc3fc316a2b14a043cf65d5f7db32e0717.tar.gz
debug build: build with -fsanitize=address
Let's compile with this flag to detect memory erros in the debug build.

See https://clang.llvm.org/docs/AddressSanitizer.html

Regards: https://github.com/profanity-im/profanity/issues/1512
-rwxr-xr-xconfigure-debug2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure-debug b/configure-debug
index 63679c98..e0fad154 100755
--- a/configure-debug
+++ b/configure-debug
@@ -1,4 +1,4 @@
 #!/bin/sh
 
 #./configure PYTHON_VERSION=3 CFLAGS='-g3 -O0' CXXFLAGS='-g3 -O0' $@
-./configure CFLAGS='-g3 -O0' CXXFLAGS='-g3 -O0' $@
+./configure CFLAGS='-g3 -O0 -fsanitize=address' CXXFLAGS='-g3 -O0' $@