summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-04-06 14:52:19 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-06-12 12:22:17 -0400
commit02a21219571332850c7b2fa129e88fa14dbb462c (patch)
tree833ddb6f8844fca3f2ef0065735d124228273730
parent24f19eb15cbae1c6d21e77fcdccdf1cf89ef6faf (diff)
downloadbfs-02a21219571332850c7b2fa129e88fa14dbb462c.tar.xz
build: Add tsan to distcheck
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 546c605..65e1301 100644
--- a/Makefile
+++ b/Makefile
@@ -196,6 +196,9 @@ all: bfs tests
$(BIN)/%:
@$(MKDIR) $(@D)
+$(CC) $(ALL_LDFLAGS) $^ $(ALL_LDLIBS) -o $@
+ifeq ($(OS) $(TSAN),FreeBSD tsan)
+ elfctl -e +noaslr $@
+endif
$(OBJ)/%.o: %.c $(OBJ)/FLAGS
@$(MKDIR) $(@D)
@@ -279,6 +282,7 @@ distcheck:
ifneq ($(OS),Darwin)
+$(MAKE) -B msan ubsan check CC=clang $(DISTCHECK_FLAGS)
endif
+ +$(MAKE) -B tsan ubsan check CC=clang $(DISTCHECK_FLAGS)
ifeq ($(OS) $(ARCH),Linux x86_64)
+$(MAKE) -B check EXTRA_CFLAGS="-m32" ONIG_CONFIG= $(DISTCHECK_FLAGS)
endif