Skip to content

Commit

Permalink
Examples: Use ALLOW_MEMORY_GROWTH for Emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
brackeen committed Mar 6, 2024
1 parent 2f0374a commit f823dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/cmake/GLFMAppTarget.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
else()
set(GLFM_PRELOAD_FLAG "")
endif()
set_target_properties(${GLFM_APP_TARGET_NAME} PROPERTIES LINK_FLAGS "--shell-file ${CMAKE_CURRENT_BINARY_DIR}/shell.html.in ${GLFM_PRELOAD_FLAG}")
set_target_properties(${GLFM_APP_TARGET_NAME} PROPERTIES LINK_FLAGS "-sALLOW_MEMORY_GROWTH --shell-file ${CMAKE_CURRENT_BINARY_DIR}/shell.html.in ${GLFM_PRELOAD_FLAG}")
elseif (CMAKE_SYSTEM_NAME STREQUAL "Android")
add_library(${GLFM_APP_TARGET_NAME} SHARED ${GLFM_APP_SRC})
target_link_libraries(${GLFM_APP_TARGET_NAME} glfm)
Expand Down

0 comments on commit f823dc3

Please sign in to comment.