ref: b2537502d9aa8a69d9b4c2dfa1fd1c57116bba3e
parent: 3731792b164223503a4bca4f94a10d0dda63a59f
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Oct 30 18:43:53 EDT 2021
tests/cc: Use scc instead of scc-cc The scc wrapper simplifies the use of scc because it automatically sets all the environment variables needed.
--- a/tests/cc/error/Makefile
+++ b/tests/cc/error/Makefile
@@ -2,12 +2,12 @@
ROOT=../../..
SCCPREFIX=$(ROOT)
-CC=$(ROOT)/bin/scc-cc
+CC=$(ROOT)/bin/scc
all: tests
tests:
- CC=$(CC) SCCPREFIX=$(SCCPREFIX) ./chktest.sh scc-tests.lst
+ CC=$(CC) ./chktest.sh scc-tests.lst
clean:
rm -f *.as *.o *.ir *.qbe *core test.log
--- a/tests/cc/execute/Makefile
+++ b/tests/cc/execute/Makefile
@@ -2,12 +2,12 @@
ROOT=../../..
SCCPREFIX=$(ROOT)
-CC=$(ROOT)/bin/scc-cc
+CC=$(ROOT)/bin/scc
all: tests
tests:
- @CC=$(CC) SCCPREFIX=$(SCCPREFIX) ./chktest.sh scc-tests.lst
+ @CC=$(CC) ./chktest.sh scc-tests.lst
clean:
rm -f *.as *.o *.ir *.qbe *core test.log