diff options
author | Xiretza <xiretza@xiretza.xyz> | 2021-03-16 16:41:31 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2021-07-05 16:42:10 +0200 |
commit | 75e5500d4d3a9f37d14e94304bb7b90762ac13e8 (patch) | |
tree | 174072749b857f722cb7054496c48a6dc64f0c6b | |
parent | a189284a28d33e383538f9bd0ec3d58bd3cf5cee (diff) | |
download | yosys-75e5500d4d3a9f37d14e94304bb7b90762ac13e8.tar.gz yosys-75e5500d4d3a9f37d14e94304bb7b90762ac13e8.tar.bz2 yosys-75e5500d4d3a9f37d14e94304bb7b90762ac13e8.zip |
Makefile: allow running multiple sanitizers at once
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |