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)
2929# Registers build options that are exposed to cmake
3030include (CMakeOptions.txt)
3131
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" )
3333 if (NOT GLFW_BUILD_WAYLAND AND NOT GLFW_BUILD_X11)
3434 MESSAGE (FATAL_ERROR "Cannot disable both Wayland and X11" )
3535 endif ()
Original file line number Diff line number Diff line change 6969endif ()
7070
7171if (${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 )
7373 if (${GRAPHICS} MATCHES "GRAPHICS_API_OPENGL_ES3" )
7474 target_link_options (raylib PUBLIC "-sMIN_WEBGL_VERSION=2" )
7575 target_link_options (raylib PUBLIC "-sMAX_WEBGL_VERSION=2" )
You can’t perform that action at this time.
0 commit comments