make: add address sanitiser target

This commit is contained in:
John McNamara 2024-05-24 06:25:53 +01:00
parent 1c87db843f
commit 12d67a6968

View File

@ -185,6 +185,11 @@ coverity: clean_src third_party
$(Q)$(MAKE) -C src clean
$(Q)rm -f lib/*
# Run address sanitiser.
address_sanitiser: third_party
$(Q)$(MAKE) -C src libxlsxwriter.a CFLAGS="-fsanitize=address -O1 -fsanitize-coverage=trace-pc-guard -fno-omit-frame-pointer -g"
$(Q)$(MAKE) -C examples CFLAGS="-fsanitize=address -O1 -fsanitize-coverage=trace-pc-guard -fno-omit-frame-pointer -g"
# Run gcov coverage analysis.
gcov: third_party
$(Q)$(MAKE) -C src clean