File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ include(CompilerFlags)
29
29
# Registers build options that are exposed to cmake
30
30
include (CMakeOptions.txt)
31
31
32
- if (UNIX AND NOT APPLE AND NOT "${PLATFORM} " MATCHES "DRM" )
32
+ if (UNIX AND NOT APPLE AND NOT "${PLATFORM} " MATCHES "DRM" AND NOT " ${PLATFORM} " MATCHES "Web" )
33
33
if (NOT GLFW_BUILD_WAYLAND AND NOT GLFW_BUILD_X11)
34
34
MESSAGE (FATAL_ERROR "Cannot disable both Wayland and X11" )
35
35
endif ()
Original file line number Diff line number Diff line change 69
69
endif ()
70
70
71
71
if (${PLATFORM} MATCHES "Web" )
72
- target_link_options (raylib PUBLIC "-sUSE_GLFW=3" )
72
+ target_link_options (raylib PUBLIC "-sUSE_GLFW=3" -sEXPORTED_RUNTIME_METHODS=ccall -sASYNCIFY )
73
73
if (${GRAPHICS} MATCHES "GRAPHICS_API_OPENGL_ES3" )
74
74
target_link_options (raylib PUBLIC "-sMIN_WEBGL_VERSION=2" )
75
75
target_link_options (raylib PUBLIC "-sMAX_WEBGL_VERSION=2" )
You can’t perform that action at this time.
0 commit comments