From b564a6028bead88340f76e3ecaf5516d1b0d85f9 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 11 Jul 2023 01:35:09 -0500 Subject: [PATCH] Default ASAN=1 when "make tests" builds a toybox binary. Use "make clean tests ASAN=" to test without ASAN. (Or just build toybox first so the build prerequisite doesn't trigger.) --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 52f0851c..b1c7e279 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ HOSTCC?=cc -export CROSS_COMPILE CFLAGS OPTIMIZE LDOPTIMIZE CC HOSTCC V STRIP +export CROSS_COMPILE CFLAGS OPTIMIZE LDOPTIMIZE CC HOSTCC V STRIP ASAN all: toybox @@ -73,6 +73,7 @@ distclean: clean root_clean @rm -f toybox* .config* .singlemake @echo removed .config +tests: ASAN=1 tests: toybox scripts/test.sh -- 2.39.2