Added EMCCFLAGS
authorClifford Wolf <clifford@clifford.at>
Fri, 13 Feb 2015 11:32:04 +0000 (12:32 +0100)
committerClifford Wolf <clifford@clifford.at>
Fri, 13 Feb 2015 11:32:04 +0000 (12:32 +0100)
Makefile

index 7b4707afefd341f3c6566c4ba3d89143542895ff..4b004196d7a422f45805131894c89dd052edeed9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -97,6 +97,14 @@ else ifeq ($(CONFIG),emcc)
 CXX = emcc
 CXXFLAGS += -std=c++11 -Os -Wno-warn-absolute-paths
 CXXFLAGS := $(filter-out -ggdb,$(CXXFLAGS))
+EMCCFLAGS := -s ALLOW_MEMORY_GROWTH=1
+EMCCFLAGS += -s DISABLE_EXCEPTION_CATCHING=0
+# EMCCFLAGS += -s ASSERTIONS=2
+# EMCCFLAGS += -s SAFE_HEAP=1
+# EMCCFLAGS += -s RELOOP=0
+# EMCCFLAGS += -g4
+CXXFLAGS += $(EMCCFLAGS)
+LDFLAGS += $(EMCCFLAGS)
 EXE = .html
 
 else ifeq ($(CONFIG),mxe)