From 37aebe3edeab296e10cde04a66d2e21dca4eee16 Mon Sep 17 00:00:00 2001 From: Florian Schmaus <flow@cs.fau.de> Date: Wed, 8 Jun 2022 10:44:57 +0200 Subject: [PATCH] [Makefile] Add asan(-test) targets --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 99687470..0d383e95 100644 --- a/Makefile +++ b/Makefile @@ -83,6 +83,18 @@ lto: EMPER_B_LTO=true \ BUILDDIR="build-$@" +.PHONY: asan +asan: + rm -f build + $(MAKE) build \ + EMPER_LOG_LEVEL="Info" \ + EMPER_B_SANITIZE=address \ + BUILDDIR="build-$@" + +.PHONY: asan-test +asan-test: asan + meson test -C build-asan + .PHONY: fast-static-analysis fast-static-analysis: all check-format check-license doc -- GitLab