Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow building for emscripten with "emmake make"
Browse files Browse the repository at this point in the history
Co-authored-by: James Darpinian <[email protected]>
zturtleman and jdarpinian committed Jun 9, 2024
1 parent f97a41c commit 12a86b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 12a86b8

Please sign in to comment.