mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 12:01:25 +00:00
Tweak emcc args to try to stop the web version of shpuld's bloodletter game from crashing. Still basically unplayable though.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5690 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
5d1d1ef9be
commit
9859e199a0
1 changed files with 12 additions and 7 deletions
|
@ -1664,13 +1664,18 @@ ifeq ($(FTE_TARGET),web)
|
|||
# ASMJS_MEMORY?=1073741824 #1025mb
|
||||
# ASMJS_MEMORY?=2147483648 #2048mb
|
||||
WEB_MEMORY?=$(ASMJS_MEMORY)
|
||||
JSLIBS=--js-library web/ftejslib.js -s LEGACY_GL_EMULATION=0
|
||||
EMCC_ARGS=$(JSLIBS) $(WEB_PREJS) -s ERROR_ON_UNDEFINED_SYMBOLS=1
|
||||
RELEASE_CFLAGS=-DOMIT_QCC -DGL_STATIC -DFTE_TARGET_WEB
|
||||
DEBUG_CFLAGS=-g4 -DOMIT_QCC -DGL_STATIC -DFTE_TARGET_WEB
|
||||
RELEASE_LDFLAGS=-O3 -s TOTAL_MEMORY=$(ASMJS_MEMORY) $(EMCC_ARGS) -s NO_FILESYSTEM=1
|
||||
# RELEASE_LDFLAGS=-O1 -s TOTAL_MEMORY=$(WEB_MEMORY) $(EMCC_ARGS)
|
||||
DEBUG_LDFLAGS=-O0 -g4 -s TOTAL_MEMORY=$(WEB_MEMORY) $(EMCC_ARGS) -s SAFE_HEAP=1 -s ALIASING_FUNCTION_POINTERS=0 -s ASSERTIONS=2 -s NO_FILESYSTEM=1
|
||||
JSLIBS=--js-library web/ftejslib.js
|
||||
EMCC_CFLAGS= -DFTE_TARGET_WEB
|
||||
EMCC_LDFLAGS=$(EMCC_CFLAGS) $(JSLIBS) $(WEB_PREJS)
|
||||
EMCC_CFLAGS+= -s BINARYEN_TRAP_MODE='clamp' #fix bigfloat->int rounding crashes
|
||||
EMCC_CFLAGS+= -s LEGACY_GL_EMULATION=0 #simplify the opengl wrappers.
|
||||
EMCC_CFLAGS+= -s NO_FILESYSTEM=1 #we have our own.
|
||||
EMCC_LDFLAGS+=-s ERROR_ON_UNDEFINED_SYMBOLS=1 #fairly obvious. no runtime errors please.
|
||||
RELEASE_CFLAGS=-DOMIT_QCC -DGL_STATIC $(EMCC_CFLAGS)
|
||||
DEBUG_CFLAGS=-g4 -DOMIT_QCC -DGL_STATIC $(EMCC_CFLAGS)
|
||||
RELEASE_LDFLAGS=-O3 -s TOTAL_MEMORY=$(ASMJS_MEMORY) $(EMCC_LDFLAGS)
|
||||
# RELEASE_LDFLAGS=-O1 -s TOTAL_MEMORY=$(WEB_MEMORY) $(EMCC_LDFLAGS)
|
||||
DEBUG_LDFLAGS=-O0 -g4 -s TOTAL_MEMORY=$(WEB_MEMORY) $(EMCC_LDFLAGS) -s SAFE_HEAP=1 -s ALIASING_FUNCTION_POINTERS=0 -s ASSERTIONS=2
|
||||
CC?=emcc
|
||||
CXX?=emcc
|
||||
#BASELDFLAGS=
|
||||
|
|
Loading…
Reference in a new issue