From 2bbfaf436f937ace4809d84be812ea1ac7fd7352 Mon Sep 17 00:00:00 2001 From: James Lyon Date: Thu, 18 Apr 2013 17:27:34 +0100 Subject: Tests in abitest.c now work on Win32. I expect that Linux-x86 is probably fine. All other architectures except ARM are definitely broken since I haven't yet implemented gfunc_sret for these, although replicating the current behaviour should be straightforward. --- tests/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'tests/Makefile') diff --git a/tests/Makefile b/tests/Makefile index f47ede4..ae5d47d 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -13,7 +13,7 @@ TESTS = \ hello-run \ libtest \ test3 \ - abitest-exe \ + abitest \ moretests # test4 -- problem with -static @@ -180,12 +180,16 @@ asmtest: asmtest.ref # Check that code generated by libtcc is binary compatible with # that generated by CC -abitest$(EXESUF): abitest.c $(top_builddir)/$(LIBTCC) - $(CC) -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(NATIVE_DEFINES) $(LIBS) $(LINK_LIBTCC) $(LDFLAGS) -I$(top_srcdir) -g -O0 +abitest-cc$(EXESUF): abitest.c $(top_builddir)/$(LIBTCC) + $(CC) -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(NATIVE_DEFINES) $(LIBS) $(LINK_LIBTCC) $(LDFLAGS) -I$(top_srcdir) + +abitest-tcc$(EXESUF): abitest.c $(top_builddir)/$(LIBTCC) + $(TCC) -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(NATIVE_DEFINES) $(LIBS) $(LINK_LIBTCC) $(LDFLAGS) -I$(top_srcdir) -abitest-exe: abitest$(EXESUF) +abitest: abitest-cc$(EXESUF) abitest-tcc$(EXESUF) @echo ------------ $@ ------------ - abitest$(EXESUF) lib_path=.. + abitest-cc$(EXESUF) lib_path=.. + abitest-tcc$(EXESUF) lib_path=.. # targets for development %.bin: %.c tcc -- cgit v1.3.1