shithub: scc

Download patch

ref: 1b3b1bd29f481e0fca986153d78c672413b2419c
parent: 8604fd05150d98be7c9503ec9a97b63f05371ff7
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Oct 31 12:03:53 EDT 2021

tests: Remove selfhosts.sh

This shell script is not needed anymore because we can just
execute make modifying the value of CC.

--- a/tests/selfhost.sh
+++ /dev/null
@@ -1,64 +1,0 @@
-#! /bin/sh
-
-# A script to self host whatever object files that we can as a regression test.
-# One day it can be replaced with:
-# make install && make clean && make CC=scc install
-
-set -e
-set -u
-
-unset SCCEXECPATH
-
-selfhostedobj=\
-"lib/xstrdup.o
- lib/xmalloc.o
- lib/xcalloc.o
- lib/xrealloc.o"
-#lib/newitem.o
-#lib/debug.o
-#lib/die.o
-#driver/posix/scc.o
-#cc1/error.o
-#cc1/stmt.o
-#cc1/init.o
-#cc1/arch/qbe/arch.o
-#cc1/fold.o
-#cc1/types.o
-#cc1/builtin.o
-#cc1/cpp.o
-#cc1/symbol.o
-#cc1/lex.o
-#cc1/decl.o
-#cc1/main.o
-#cc1/code.o
-#cc1/expr.o
-#cc2/arch/qbe/cgen.o
-#cc2/arch/qbe/types.o
-#cc2/arch/qbe/optm.o
-#cc2/arch/qbe/code.o
-#cc2/peep.o
-#cc2/parser.o
-#cc2/node.o
-#cc2/symbol.o
-#cc2/optm.o
-#cc2/main.o
-#cc2/code.o"
-
-if ! test -d ./cc1
-then
-	echo "run this script from the root of the scc repository."
-	exit 1
-fi
-
-boostrapdir="$(pwd)/_bootstrap"
-rm -rf "$boostrapdir"
-mkdir "$boostrapdir"
-
-make clean
-make PREFIX="$boostrapdir" install
-export PATH="$boostrapdir/bin:$PATH"
-
-rm lib/libcc.a bin/scc bin/cc*
-rm $selfhostedobj
-
-make CC=scc tests