summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b71ca26..cff49e5 100644
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,10 @@ ifndef OS
OS := $(shell uname)
endif
+ifndef ARCH
+ARCH := $(shell uname -m)
+endif
+
CC ?= gcc
INSTALL ?= install
MKDIR ?= mkdir -p
@@ -168,8 +172,10 @@ distcheck:
+$(MAKE) -B asan ubsan check $(DISTCHECK_FLAGS)
ifneq ($(OS),Darwin)
+$(MAKE) -B msan check CC=clang $(DISTCHECK_FLAGS)
+ifeq ($(ARCH),x86_64)
+$(MAKE) -B check CFLAGS="-m32" $(DISTCHECK_FLAGS)
endif
+endif
+$(MAKE) -B release check $(DISTCHECK_FLAGS)
+$(MAKE) -B check $(DISTCHECK_FLAGS)