diff options
| author | 2018-12-06 14:30:11 -0500 | |
|---|---|---|
| committer | 2018-12-06 14:30:11 -0500 | |
| commit | 7668cd57724f4da9fade83f0d9e17f080a833511 (patch) | |
| tree | 93e68f069dd855e17b63355d658c48fc6c289ffd /build_win.bat | |
| parent | Make eval not the same as eval string. (diff) | |
Don't use generated headers for embedded janet
code, use object files.
Diffstat (limited to 'build_win.bat')
| -rw-r--r-- | build_win.bat | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/build_win.bat b/build_win.bat index f49ed8f3..a3cc3897 100644 --- a/build_win.bat +++ b/build_win.bat @@ -28,10 +28,16 @@ mkdir build\mainclient @link /nologo /out:build\xxd.exe build\xxd.obj @if errorlevel 1 goto :BUILDFAIL -@rem Generate the headers -@build\xxd.exe src\core\core.janet src\include\generated\core.h janet_gen_core +@rem Generate the embedded sources +@build\xxd.exe src\core\core.janet build\core\core.gen.c janet_gen_core @if errorlevel 1 goto :BUILDFAIL -@build\xxd.exe src\mainclient\init.janet src\include\generated\init.h janet_gen_init +@build\xxd.exe src\mainclient\init.janet build\mainclient\init.gen.c janet_gen_init +@if errorlevel 1 goto :BUILDFAIL + +@rem Build the generated sources +@%JANET_COMPILE% /Fobuild\core\core.gen.obj build\core\core.gen.c +@if errorlevel 1 goto :BUILDFAIL +@%JANET_COMPILE% /Fobuild\mainclient\init.gen.obj build\mainclient\init.gen.c @if errorlevel 1 goto :BUILDFAIL @rem Build the sources |
