summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-11-23 22:02:20 -0500
committerTavian Barnes <tavianator@tavianator.com>2020-11-30 10:19:44 -0500
commitb9beae67a1dce1cc957a2a780c26ce0ca3afc70c (patch)
treecc12de90a3f8970feb89a8d51f7cde3056c19a0d /Makefile
parentcf6cea495ac4425fceda6269c57c72134335308e (diff)
downloadbfs-b9beae67a1dce1cc957a2a780c26ce0ca3afc70c.tar.xz
Makefile: Only do -m32 during distcheck on x86_64
Multilib isn't well-supported outside of x86.
Diffstat (limited to 'Makefile')
-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)