summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRfaile313 <[email protected]>2020-08-02 13:21:59 -0500
committerGitHub <[email protected]>2020-08-02 20:21:59 +0200
commit9e75f870bb2e87d97bed11d9fdbbd50d44b4a458 (patch)
treedf3ff1b07b8c146ed02deeb33a863a8b1428c550 /src
parent168948d91d1d1caa332120bd9c27f129bcf3a665 (diff)
downloadraylib-9e75f870bb2e87d97bed11d9fdbbd50d44b4a458.tar.gz
raylib-9e75f870bb2e87d97bed11d9fdbbd50d44b4a458.zip
Update Makefile for web (#1332)
When you install emsdk out of the box, the directory is no longer `$(EMSDK_PATH)/python/33.7.4_64bit` but rather `$(EMSDK_PATH)/python/3.7.4-pywin32_64bit` noting the `3.7.4-pywin32_64bit` change on the last file. Thus, without adjusting this in the raylib Makefile it will throw an error: ``` PS C:\raylib\raylib\src> make PLATFORM=PLATFORM_WEB -B emcc -c core.c -Wall -D_DEFAULT_SOURCE -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing -std=gnu99 -Os -s USE_GLFW=3 -I. -Iexternal/glfw/include -Iexternal/glfw/deps/mingw -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2 '"python"' is not recognized as an internal or external command, operable program or batch file. ``` However, changing this line in the Makefile compiles raylib for web as expected `"raylib library generated (libraylib.bc)!"`
Diffstat (limited to 'src')
-rw-r--r--src/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index db94298a..65b400e4 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -150,7 +150,7 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
EMSDK_PATH ?= C:/emsdk
EMSCRIPTEN_PATH ?= $(EMSDK_PATH)/upstream/emscripten
CLANG_PATH = $(EMSDK_PATH)/upstream/bin
- PYTHON_PATH = $(EMSDK_PATH)/python/3.7.4_64bit
+ PYTHON_PATH = $(EMSDK_PATH)/python/3.7.4-pywin32_64bit
NODE_PATH = $(EMSDK_PATH)/node/12.18.1_64bit/bin
export PATH = $(EMSDK_PATH);$(EMSCRIPTEN_PATH);$(CLANG_PATH);$(NODE_PATH);$(PYTHON_PATH);C:\raylib\MinGW\bin:$$(PATH)
endif