From 12d67a696807f292e155455a2a3f6a3570d0a805 Mon Sep 17 00:00:00 2001 From: John McNamara Date: Fri, 24 May 2024 06:25:53 +0100 Subject: [PATCH] make: add address sanitiser target --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 445dcde9..a28c2ac4 100644 --- a/Makefile +++ b/Makefile @@ -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