Makefile: Enable address sanitizer with DEBUG_ASAN=1
authorPaul Cercueil <paul@crapouillou.net>
Sun, 19 Nov 2023 11:50:39 +0000 (12:50 +0100)
committerPaul Cercueil <paul@crapouillou.net>
Sun, 19 Nov 2023 22:34:17 +0000 (23:34 +0100)
commit1a970759e200130f3caa4f7365facfdb128fc546
tree9e496629af753fe6b352eed82ff2b6b1b74c7340
parentd12f66835edbe7d7f1401afb9678e9d25f860d49
Makefile: Enable address sanitizer with DEBUG_ASAN=1

The Address Sanitizer (built in GCC and LLVM) is an extremely powerful
tool, moreso than e.g. Valgrind for detecting memory issues.

It is not available on every architecture/OS combination (see
https://github.com/google/sanitizers/wiki/AddressSanitizer), so it can
only be enabled by compiling with DEBUG_ASAN=1.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Makefile