Add release build script, fix build flags
- Fixes web lag from glGetError on web buildmain
parent
7d7a0f24cb
commit
245b7d05b0
@ -0,0 +1,17 @@
|
||||
@echo off
|
||||
|
||||
rmdir /S /q build_web_release
|
||||
mkdir build_web_release
|
||||
|
||||
call run_codegen.bat || goto :error
|
||||
|
||||
echo Building release
|
||||
emcc -DNDEBUG -O2 -DDEVTOOLS -s ALLOW_MEMORY_GROWTH -Ithirdparty -Igen main.c -o build_web_release\index.html --preload-file assets --shell-file web_template.html || goto :error
|
||||
|
||||
goto :EOF
|
||||
|
||||
:error
|
||||
echo Failed to build
|
||||
exit /B %ERRORLEVEL%
|
||||
|
||||
|
Loading…
Reference in New Issue