Fix build when specifying PLATFORM=emscripten manually instead of using emmake

This commit is contained in:
James Darpinian 2024-06-07 08:28:04 -07:00 committed by Zack Middleton
parent 2765cd5398
commit 6fe061c36e

View file

@ -1064,7 +1064,9 @@ ifeq ($(PLATFORM),emscripten)
# 5. Serve the build/release-emscripten-wasm32/ioquake3_opengl2.{html,js,wasm,data} from a web server.
# 6. Load ioquake3_opengl2.html in a web browser.
CC=emcc
ifneq ($(findstring /emcc,$(CC)),/emcc)
CC=emcc
endif
ARCH=wasm32
BINEXT=.js