diff options
Diffstat (limited to 'tinyvm.bat')
| -rwxr-xr-x | tinyvm.bat | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -412,18 +412,18 @@ if errorlevel 1 exit /b 1 echo Bootstrapping the compiler genome... if not exist build\s0 mkdir build\s0 if not exist build\s1 mkdir build\s1 -(type src\runtime\rt.zc & type src\core\core.zc & type src\compiler\compiler.zc) | build\bin\zc0.exe > build\s0\g0.bin +(type src\runtime\rt.zc & type src\core\core.zc & for /f %%f in (src\compiler\parts) do @type src\compiler\%%f) | build\bin\zc0.exe > build\s0\g0.bin if errorlevel 1 (echo [ERROR] Stage 0 failed.& exit /b 1) build\bin\mkgenome.exe < build\s0\g0.bin > build\s0\genome.bin if errorlevel 1 (echo [ERROR] Stage 0 did not produce a genome.& exit /b 1) "%CC%" -O2 -w -fwrapv -DJTYPE=int src\core\core.c src\core\io_win.c -Isrc/core -Ibuild/core/map --embed-dir=build/s0 -o build\s0\zy0.exe if errorlevel 1 (echo [ERROR] Failed to build the stage 0 core.& exit /b 1) -(type src\tools\build.zc & echo ` & type src\runtime\rt.zc & type src\core\core.zc & type src\compiler\compiler.zc) | build\s0\zy0.exe > build\s1\g1.bin +(type src\tools\build.zc & echo ` & type src\runtime\rt.zc & type src\core\core.zc & for /f %%f in (src\compiler\parts) do @type src\compiler\%%f) | build\s0\zy0.exe > build\s1\g1.bin build\bin\mkgenome.exe < build\s1\g1.bin > build\s1\genome.bin if errorlevel 1 (echo [ERROR] The compiler did not compile itself; its diagnostics are above.& exit /b 1) "%CC%" -O2 -w -fwrapv -DJTYPE=int src\core\core.c src\core\io_win.c -Isrc/core -Ibuild/core/map --embed-dir=build/s1 -o build\s1\zy1.exe if errorlevel 1 (echo [ERROR] Failed to build the stage 1 core.& exit /b 1) -(type src\tools\build.zc & echo ` & type src\runtime\rt.zc & type src\core\core.zc & type src\compiler\compiler.zc) | build\s1\zy1.exe > build\s1\g2.bin +(type src\tools\build.zc & echo ` & type src\runtime\rt.zc & type src\core\core.zc & for /f %%f in (src\compiler\parts) do @type src\compiler\%%f) | build\s1\zy1.exe > build\s1\g2.bin fc /b build\s1\g1.bin build\s1\g2.bin >nul if errorlevel 1 (echo [ERROR] Fixpoint failed: the compiler does not compile itself to the same image.& exit /b 1) copy /y build\s1\genome.bin build\core\genome.bin >nul |
