Skip to content

Commit

Permalink
Disable unsafe GL opts, enable -O2
Browse files Browse the repository at this point in the history
  • Loading branch information
j4m3z0r committed May 7, 2013
1 parent d68d0e6 commit a285117
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cocos2dx/proj.emscripten/cocos2dx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ LBITS := $(shell getconf LONG_BIT)
INCLUDES += -I$(COCOS_SRC)/platform/third_party/linux

ifeq ($(DEBUG), 1)
CCFLAGS += -g -O0 -s ASSERTIONS=1 -s SAFE_HEAP=1 --jcache
CXXFLAGS += -g -O0 -s ASSERTIONS=1 -s SAFE_HEAP=1 --jcache
CCFLAGS += -g -O0 -s ASSERTIONS=1 -s SAFE_HEAP=1 --jcache -s GL_UNSAFE_OPTS=0
CXXFLAGS += -g -O0 -s ASSERTIONS=1 -s SAFE_HEAP=1 --jcache -s GL_UNSAFE_OPTS=0
DEFINES += -D_DEBUG -DCOCOS2D_DEBUG=1 -DCP_USE_DOUBLES=0
OBJ_DIR := $(OBJ_DIR)/debug
LIB_DIR := $(LIB_DIR)/debug
BIN_DIR := $(BIN_DIR)/debug
else
CCFLAGS += -O1 --jcache
CXXFLAGS += -O1 --jcache
CCFLAGS += -O2 --jcache -s GL_UNSAFE_OPTS=0
CXXFLAGS += -O2 --jcache -s GL_UNSAFE_OPTS=0
DEFINES += -DNDEBUG -DCP_USE_DOUBLES=0
OBJ_DIR := $(OBJ_DIR)/release
LIB_DIR := $(LIB_DIR)/release
Expand Down

0 comments on commit a285117

Please sign in to comment.