diff options
| author | gingerBill <bill@gingerbill.org> | 2021-11-09 18:06:19 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-11-09 18:06:19 +0000 |
| commit | 321d93bff1c3ee1ac2658e706df575fb661e0b9b (patch) | |
| tree | a0cf9bb1c4edd0e348c073e5966af0e1ab34e7ec /build.bat | |
| parent | c63f4d68c8ffd5f94e933cec14eccdb986d20a1d (diff) | |
| parent | 600d19c51b9c1cbf6ecf5bd9f9def15d4780c661 (diff) | |
Merge branch 'master' into target-js_wasm32
Diffstat (limited to 'build.bat')
| -rw-r--r-- | build.bat | 47 |
1 files changed, 42 insertions, 5 deletions
@@ -69,13 +69,50 @@ set linker_settings=%libs% %linker_flags% del *.pdb > NUL 2> NUL del *.ilk > NUL 2> NUL -cl %compiler_settings% "src\main.cpp" "src\libtommath.cpp" /link %linker_settings% -OUT:%exe_name% -if %errorlevel% neq 0 goto end_of_build +rem cl %compiler_settings% "src\main.cpp" "src\libtommath.cpp" /link %linker_settings% -OUT:%exe_name% +rem if %errorlevel% neq 0 goto end_of_build -call build_vendor.bat -if %errorlevel% neq 0 goto end_of_build +odin run examples/bug +rem odin build examples/demo -use-separate-modules +rem odin run examples/demo -o:minimal +rem odin run examples/demo -o:size +rem odin run examples/demo -o:speed -keep-temp-files +rem odin run examples/demo -o:speed -keep-temp-files -if %release_mode% EQU 0 odin run examples/demo +rem set small_hellope_flags=-strict-style -no-bounds-check -default-to-nil-allocator -disable-assert -no-crt -o:size +rem set small_hellope_flags=-strict-style -no-bounds-check -default-to-nil-allocator -disable-assert -o:size + +rem odin build examples/small_hellope %small_hellope_flags% -build-mode:asm +rem odin run examples/small_hellope %small_hellope_flags% -keep-temp-files +rem FOR /F "usebackq" %%A IN ('small_hellope.exe') DO echo %%~zA + +rem cl /nologo examples\small_hellope\small_hellope.c /O1 /link Kernel32.lib -out:small_hellope_c.exe /NODEFAULTLIB /entry:mainCRTStartup /subsystem:console +rem small_hellope_c.exe +rem FOR /F "usebackq" %%A IN ('small_hellope_c.exe') DO echo %%~zA + + +rem odin run examples/demo +rem odin run examples/sdl2 -vet +rem odin check examples/all -vet +rem odin run examples/bug + +rem odin check examples/wasm -strict-style -target:wasi_wasm32 +rem odin check examples/demo -strict-style +rem odin build examples/wasm -strict-style -target:wasi_wasm32 -keep-temp-files +rem "C:\Program Files\WAVM\bin\wavm.exe" disassemble wasm.wasm > wasm.wast +rem "C:\Program Files\WAVM\bin\wavm.exe" run --abi=wasi --function=weird_add wasm.wasm 2 3 + +rem wasmer inspect wasm.wasm +rem wasmer run wasm.wasm + +rem odin run examples/demo -strict-style + +rem call build_vendor.bat +rem if %errorlevel% neq 0 goto end_of_build + +rem if %release_mode% EQU 0 odin check examples/bug -strict-style + +rem odin run examples/demo -strict-style del *.obj > NUL 2> NUL |