From f30c40418962874ac2814482d115d1e30412546d Mon Sep 17 00:00:00 2001 From: Yang Hau Date: Sun, 25 Aug 2024 14:35:37 +0800 Subject: [PATCH] wip --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 19e8bdbd..9c0505f3 100644 --- a/Makefile +++ b/Makefile @@ -75,11 +75,11 @@ EXEC = tests/main $(EXEC): $(OBJS) $(CXX) $(LDFLAGS) -o $@ $^ -check: tests/main - export LSAN_OPTIONS=verbosity=2:log_threads=1 -ifeq ($(processor),$(filter $(processor),aarch64 arm64 arm armv7l)) - $(CC) $(ARCH_CFLAGS) -c -O2 sse2neon.h -endif +check: $(EXEC) + export LSAN_OPTIONS=verbosity=2:log_threads=1 && \ + ifeq ($(processor),$(filter $(processor),aarch64 arm64 arm armv7l)) + $(CC) $(ARCH_CFLAGS) -c -O2 sse2neon.h + endif $(EXEC_WRAPPER) $^ indent: @@ -87,7 +87,7 @@ indent: @if ! hash clang-format-12; then echo "clang-format-12 is required to indent"; fi clang-format-12 -i sse2neon.h tests/*.cpp tests/*.h -.PHONY: clean check format +.PHONY: clean check indent clean: $(RM) $(OBJS) $(EXEC) $(deps) sse2neon.h.gch