Fix oversight in the bootstrap procedure

Stage 0 is supposed to emit compiled versions of system.scm and
compiler.scm. The compiler.scm bytecode wasn't emitted properly
because the emitter put the two files' bytecode in two separate C
variables instead of concatenating them into the same variable as they
should be.
This commit is contained in:
2019-08-14 00:44:24 +03:00
parent cccbe54bb5
commit d781c65862
5 changed files with 1439 additions and 1517 deletions
+2 -4
View File
@@ -113,8 +113,7 @@ cd ../scheme-core
echo "Entering directory '$PWD'"
echo "Creating stage 0 boot file..."
set -x
../"$builddir"/upscheme mkboot0.scm system.scm compiler.scm \
>../scheme-boot/boot_image.h.new
../"$builddir"/upscheme mkboot0.scm >../scheme-boot/boot_image.h.new
mv ../scheme-boot/boot_image.h.new ../scheme-boot/boot_image.h
{ set +x; } 2>/dev/null
@@ -129,8 +128,7 @@ cd ../scheme-core
echo "Entering directory '$PWD'"
echo "Creating stage 1 boot file..."
set -x
../"$builddir"/upscheme mkboot1.scm \
>../scheme-boot/boot_image.h.new
../"$builddir"/upscheme mkboot1.scm >../scheme-boot/boot_image.h.new
mv ../scheme-boot/boot_image.h.new ../scheme-boot/boot_image.h
{ set +x; } 2>/dev/null