Allow building for emscripten with "emmake make"

Co-authored-by: James Darpinian <jdarpinian@gmail.com>
This commit is contained in:
Zack Middleton 2024-06-09 01:32:34 -05:00
parent 17cadb5369
commit 25a680ab6e
1 changed files with 5 additions and 0 deletions

View File

@ -61,6 +61,11 @@ ifeq ($(COMPILE_PLATFORM),cygwin)
PLATFORM=mingw32 PLATFORM=mingw32
endif endif
# detect "emmake make"
ifeq ($(findstring /emcc,$(CC)),/emcc)
PLATFORM=emscripten
endif
ifndef PLATFORM ifndef PLATFORM
PLATFORM=$(COMPILE_PLATFORM) PLATFORM=$(COMPILE_PLATFORM)
endif endif