scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 833e7ccfd5ba027c66cdc143c9d1ca1c154aceb8
parent ac1990af330c87012fed5d61a6f671a43ebb9fda
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date:   Sat, 11 Apr 2026 00:08:24 +0200

tests/libc: Use scc to compile the tests

This increases the coverage of the compiler because we expose
more test cases that maybe the cc test suite didn't catch it.

Diffstat:
Mscripts/rules.mk | 2++
Mtests/libc/execute/Makefile | 10++++------
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/scripts/rules.mk b/scripts/rules.mk @@ -27,6 +27,8 @@ SRCDIR = $(PROJECTDIR)/src CMDDIR = $(SRCDIR)/cmd MANDIR = $(PROJECTDIR)/share/man +SCC = $(BINDIR)/scc + # library dependences helpers LIBMACH = $(LIBDIR)/scc/libmach.a LIBSCC = $(LIBDIR)/scc/libscc.a diff --git a/tests/libc/execute/Makefile b/tests/libc/execute/Makefile @@ -1,12 +1,10 @@ .POSIX: -ROOT=../../.. -SCCPREFIX=$(ROOT) -CC=$(ROOT)/bin/gcc-scc -CFLAGS= +PROJECTDIR = ../../.. +include $(PROJECTDIR)/scripts/rules.mk -.c: - $(CC) $(CFLAGS) -o $@ $< +CC=$(SCC) +PROJ_CFLAGS = $(CFLAGS) all: CC=$(CC) ./runtests.sh libc-tests.lst