From: Xiretza Date: Tue, 16 Mar 2021 15:41:31 +0000 (+0100) Subject: Makefile: allow running multiple sanitizers at once X-Git-Tag: yosys-0.10~123 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75e5500d4d3a9f37d14e94304bb7b90762ac13e8;p=yosys.git Makefile: allow running multiple sanitizers at once --- diff --git a/Makefile b/Makefile index 0311607aa..d585512a5 100644 --- a/Makefile +++ b/Makefile @@ -193,14 +193,14 @@ ifneq ($(SANITIZER),) $(info [Clang Sanitizer] $(SANITIZER)) CXXFLAGS += -g -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=$(SANITIZER) LDFLAGS += -g -fsanitize=$(SANITIZER) -ifeq ($(SANITIZER),address) +ifneq ($(findstring address,$(SANITIZER)),) ENABLE_COVER := 0 endif -ifeq ($(SANITIZER),memory) +ifneq ($(findstring memory,$(SANITIZER)),) CXXFLAGS += -fPIE -fsanitize-memory-track-origins LDFLAGS += -fPIE -fsanitize-memory-track-origins endif -ifeq ($(SANITIZER),cfi) +ifneq ($(findstring cfi,$(SANITIZER)),) CXXFLAGS += -flto LDFLAGS += -flto endif