Optimizing search, buggy BlockArena on emscripten, cleanup MergeSort, address sanitizer, compile web on linux
This commit is contained in:
11
build_web.sh
11
build_web.sh
@@ -1,8 +1,9 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
incs="-Isrc/external/SDL/include -Isrc/external/lua/src -Isrc/external/glad -Lsrc/external/SDL/build_web -Isrc"
|
||||
wasmflags="-sALLOW_MEMORY_GROWTH=1 -sMAXIMUM_MEMORY=1gb -msimd128 -sTOTAL_STACK=5MB -sINITIAL_MEMORY=256mb -sUSE_WEBGL2 -sFULL_ES3=1 -sUSE_SDL=3 -sASYNCIFY -sASSERTIONS=2"
|
||||
flags="-Wall -Wno-missing-braces -Wno-writable-strings -nostdlib++ -fno-exceptions -fdiagnostics-absolute-paths"
|
||||
dbg="-g -DDEBUG_BUILD=1 -gsource-map"
|
||||
rel="-O3 -DDEBUG_BUILD=0"
|
||||
|
||||
echo todo
|
||||
|
||||
cd ..
|
||||
emcc -o text_editor.html --shell-file=data/shell.html $flags $incs $wasmflags $dbg -lm -lSDL3 src/text_editor/text_editor.cpp
|
||||
|
||||
Reference in New Issue
Block a user