aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/bootstrap.sh2
-rw-r--r--bootstrap/cgen.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/bootstrap/bootstrap.sh b/bootstrap/bootstrap.sh
index 1d682dc..64b7186 100755
--- a/bootstrap/bootstrap.sh
+++ b/bootstrap/bootstrap.sh
@@ -29,3 +29,5 @@ for f in $(find ../src/ -name '*.c'); do
done
set -x
$CC $CFLAGS -ocff1 obj1/*.o
+
+CFFC=$(dirname "$0")/cff1 make -C ../
diff --git a/bootstrap/cgen.c b/bootstrap/cgen.c
index 0bd7851..7db84ea 100644
--- a/bootstrap/cgen.c
+++ b/bootstrap/cgen.c
@@ -815,6 +815,9 @@ defctype(const struct type *ty, void *_) {
}
break;
case TYslice:
+ if (ty->konst) {
+ ty = unconstify(ty);
+ }
if (ty->child->konst) {
const struct type *ty2 = unconstifychild(ty);
defctype(ty2, NULL);