@@ -1775,18 +1775,18 @@ ifeq ($(FTE_TARGET),web)
17751775 EMCC_CFLAGS= -DFTE_TARGET_WEB
17761776 EMCC_LDFLAGS=$(EMCC_CFLAGS) $(JSLIBS) $(WEB_PREJS)
17771777# EMCC_CFLAGS+= -s BINARYEN_TRAP_MODE='clamp' #fix bigfloat->int rounding crashes
1778- EMCC_CFLAGS += -s LEGACY_GL_EMULATION=0 # simplify the opengl wrappers.
1779- EMCC_CFLAGS += -s NO_FILESYSTEM=1 # we have our own.
1780- EMCC_CFLAGS += -s FILESYSTEM=0 # we have our own.
1781- EMCC_CFLAGS += -s ALLOW_MEMORY_GROWTH=1 # reduce crashes...
1782- EMCC_CFLAGS += -s MAX_WEBGL_VERSION=2 # make use of what we can.
1783- EMCC_CFLAGS += -s TOTAL_STACK=5MB # big!
1778+ EMCC_LDFLAGS += -s LEGACY_GL_EMULATION=0 # simplify the opengl wrappers.
1779+ EMCC_LDFLAGS += -s NO_FILESYSTEM=1 # we have our own.
1780+ EMCC_LDFLAGS += -s FILESYSTEM=0 # we have our own.
1781+ EMCC_LDFLAGS += -s ALLOW_MEMORY_GROWTH=1 # reduce crashes...
1782+ EMCC_LDFLAGS += -s MAX_WEBGL_VERSION=2 # make use of what we can.
1783+ EMCC_LDFLAGS += -s TOTAL_STACK=5MB # big!
17841784 EMCC_LDFLAGS+=-s ERROR_ON_UNDEFINED_SYMBOLS=1 # fairly obvious. no runtime errors please.
17851785 RELEASE_CFLAGS=-DOMIT_QCC -DGL_STATIC $(EMCC_CFLAGS)
1786- DEBUG_CFLAGS=-g4 -DOMIT_QCC -DGL_STATIC $(EMCC_CFLAGS)
1786+ DEBUG_CFLAGS=-gsource-map -DOMIT_QCC -DGL_STATIC $(EMCC_CFLAGS)
17871787 RELEASE_LDFLAGS=-O3 -s TOTAL_MEMORY=$(ASMJS_MEMORY) $(EMCC_LDFLAGS)
17881788# RELEASE_LDFLAGS=-O1 -s TOTAL_MEMORY=$(WEB_MEMORY) $(EMCC_LDFLAGS)
1789- DEBUG_LDFLAGS=-O0 -g4 -s TOTAL_MEMORY=$(WEB_MEMORY) $(EMCC_LDFLAGS) -s SAFE_HEAP=1 -s ALIASING_FUNCTION_POINTERS=0 -s ASSERTIONS=2
1789+ DEBUG_LDFLAGS=-O0 -gsource-map -s TOTAL_MEMORY=$(WEB_MEMORY) $(EMCC_LDFLAGS) -s SAFE_HEAP=1 -s ALIASING_FUNCTION_POINTERS=0 -s ASSERTIONS=2
17901790 CC=emcc
17911791 CXX=em++
17921792 AR=emar
0 commit comments