summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRay <[email protected]>2020-02-20 23:00:29 +0100
committerRay <[email protected]>2020-02-20 23:00:29 +0100
commit67d0bf75a789c0d8c36ebc81d12930b3645f4970 (patch)
treec12ecfeea2d2499883fcd7644102b9c14c85d4b1 /examples
parenta8a21312e1ed5b938b1d95016e65d9f44c5e7b82 (diff)
downloadraylib-67d0bf75a789c0d8c36ebc81d12930b3645f4970.tar.gz
raylib-67d0bf75a789c0d8c36ebc81d12930b3645f4970.zip
Update Makefile paths to use emscripten upstream
Note that emscripten upstream branch implements the new asyncify implementation, expected to be faster than emterpreter one.
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/Makefile b/examples/Makefile
index dd92c625..6f13cfd8 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -116,8 +116,8 @@ endif
ifeq ($(PLATFORM),PLATFORM_WEB)
# Emscripten required variables
EMSDK_PATH ?= C:/emsdk
- EMSCRIPTEN_PATH ?= $(EMSDK_PATH)/fastcomp/emscripten
- CLANG_PATH = $(EMSDK_PATH)/fastcomp/bin
+ EMSCRIPTEN_PATH ?= $(EMSDK_PATH)/upstream/emscripten
+ CLANG_PATH = $(EMSDK_PATH)/upstream/bin
PYTHON_PATH = $(EMSDK_PATH)/python/2.7.13.1_64bit/python-2.7.13.amd64
NODE_PATH = $(EMSDK_PATH)/node/12.9.1_64bit/bin
export PATH = $(EMSDK_PATH);$(EMSCRIPTEN_PATH);$(CLANG_PATH);$(NODE_PATH);$(PYTHON_PATH);C:\raylib\MinGW\bin:$$(PATH)
@@ -196,7 +196,7 @@ ifeq ($(BUILD_MODE),DEBUG)
endif
else
ifeq ($(PLATFORM),PLATFORM_WEB)
- CFLAGS += -Os
+ CFLAGS += -O3
else
CFLAGS += -s -O1
endif
@@ -233,7 +233,7 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
# --profiling # include information for code profiling
# --memory-init-file 0 # to avoid an external memory initialization code file (.mem)
# --preload-file resources # specify a resources folder for data compilation
- CFLAGS += -s USE_GLFW=3 -s FORCE_FILESYSTEM=1 -s EMTERPRETIFY=1 -s EMTERPRETIFY_ASYNC=1 --preload-file $(dir $<)resources@resources
+ CFLAGS += -s USE_GLFW=3 -s FORCE_FILESYSTEM=1 -s ASYNCIFY --preload-file $(dir $<)resources@resources
# NOTE: Simple raylib examples are compiled to be interpreter by emterpreter, that way,
# we can compile same code for ALL platforms with no change required, but, working on bigger