From 6fe061c36e6ed8df5f43ea01bfef006ab5cfafe7 Mon Sep 17 00:00:00 2001 From: James Darpinian Date: Fri, 7 Jun 2024 08:28:04 -0700 Subject: [PATCH] Fix build when specifying PLATFORM=emscripten manually instead of using emmake --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1531901e..a4501ef8 100644 --- a/Makefile +++ b/Makefile @@ -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