mirror of
https://github.com/ioquake/ioq3.git
synced 2025-02-21 11:11:20 +00:00
Allow building for emscripten with "emmake make"
Co-authored-by: James Darpinian <jdarpinian@gmail.com>
This commit is contained in:
parent
17cadb5369
commit
25a680ab6e
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -61,6 +61,11 @@ ifeq ($(COMPILE_PLATFORM),cygwin)
|
|||
PLATFORM=mingw32
|
||||
endif
|
||||
|
||||
# detect "emmake make"
|
||||
ifeq ($(findstring /emcc,$(CC)),/emcc)
|
||||
PLATFORM=emscripten
|
||||
endif
|
||||
|
||||
ifndef PLATFORM
|
||||
PLATFORM=$(COMPILE_PLATFORM)
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue