From 69a137ff889f552b3ce58b861f3f0601c1818d6b Mon Sep 17 00:00:00 2001 From: grischka Date: Fri, 14 Jul 2017 19:26:01 +0200 Subject: #pragma comment(option,"-..."), bitfields test, etc... tccpp.c: * #pragma comment(option,"-some-option") to set commandline option from C code. May work only for some options. libtcc.c: * option "-d1..9": sets a 'g_debug' global variable. (for development) tests2/Makefile: * new make targets: tests2.37 / tests2.37+ run single test from tests2, optionally update .expect * new variable GEN-ALWAYS to always generate certain .expects * bitfields test tccgen.c: * bitfields: fix a bug and improve slightly more * _Generic: ignore "type match twice" --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ee8dcd9..62b7372 100644 --- a/Makefile +++ b/Makefile @@ -345,9 +345,12 @@ tar: tcc-doc.html config.mak: $(if $(wildcard $@),,@echo "Please run ./configure." && exit 1) -# in tests subdir +# run all tests test: $(MAKE) -C tests +# run test(s) from tests2 subdir (see make help) +tests2.%: + $(MAKE) -C tests/tests2 $@ clean: rm -f $(PROGS) $(PROGS_CROSS) tcc_p$(EXESUF) tcc.pod @@ -389,8 +392,14 @@ help: @echo " INC-i386 = {B}/lib/include:{B}/i386-linux/usr/include" @echo " DEF-i386 += -D__linux__" @echo "" + @echo "make test" + @echo " run all tests" + @echo "" + @echo "make tests2.all / make tests2.37 / make tests2.37+" + @echo " run all/single test(s) from tests2, optionally update .expect" + @echo "" @echo "Other supported make targets:" - @echo " install install-strip test tags ETAGS tar clean distclean help" + @echo " install install-strip tags ETAGS tar clean distclean help" @echo "" # -------------------------------------------------------------------------- -- cgit v1.3.1