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.)
This commit is contained in:
Rob Landley 2023-07-11 01:35:09 -05:00
parent 7c30d04e67
commit b564a6028b

View File

@ -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