fix(Makefile): ASAN malloc stacktraces were being truncated

This commit is contained in:
Khaïs COLIN 2025-02-14 13:30:18 +01:00
parent a6ce45ca87
commit 897f6c6a6b
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo

View file

@ -1,6 +1,9 @@
NAME = minishell
DEBUG = -g
ASAN = -fsanitize=address
# -fno-omit-frame-pointer is to prevent malloc stacktraces from being truncated,
# see "My malloc stacktraces are too short" here:
# https://github.com/google/sanitizers/wiki/AddressSanitizer
ASAN = -fsanitize=address -fno-omit-frame-pointer
TSAN = -fsanitize=thread
UBSAN = -fsanitize=undefined
LDLIBS = \