From 5f7840bc3fc316a2b14a043cf65d5f7db32e0717 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 24 Mar 2021 17:08:19 +0100 Subject: [PATCH] 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 --- configure-debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure-debug b/configure-debug index 63679c9806..e0fad1540a 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' $@