shithub: scc

Download patch

ref: bd2924ad0d60a6e54043adf337169e8ac02d19ea
parent: 4de0a49e625f3972783e04f8c44d71e23b1ef6b4
author: Andrew Chambers <[email protected]>
date: Thu Feb 16 17:36:56 EST 2017

[test]Force delete libcc.a so scc is actually used to rebuild it.

Doing so found some files that did not actually compile without error
so revert that too.

--- a/tests/selfhost.sh
+++ b/tests/selfhost.sh
@@ -10,13 +10,13 @@
 unset SCCEXECPATH
 
 selfhostedobj=\
-"lib/debug.o
- lib/die.o
- lib/newitem.o
- lib/xstrdup.o
+"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
@@ -58,7 +58,7 @@
 make PREFIX="$boostrapdir" install
 export PATH="$boostrapdir/bin:$PATH"
 
-rm bin/scc bin/cc*
+rm lib/libcc.a bin/scc bin/cc*
 rm $selfhostedobj
 
 make CC=scc tests