Skip to content

Commit

Permalink
emscripten compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sava41 committed Jul 13, 2024
1 parent 4f72ac9 commit 9ddefa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL Emscripten)
# wasm options
target_link_options(miskeenity-canvas PRIVATE -sUSE_WEBGPU=1 -sEXPORTED_RUNTIME_METHODS=[ccall] -sEXPORTED_FUNCTIONS=[_main,_malloc,_free] -sALLOW_MEMORY_GROWTH=1 -sASYNCIFY)
# WASM+JS size optimizations
target_link_options(miskeenity-canvas PRIVATE -sNO_FILESYSTEM=1 -sASSERTIONS=0 -sMALLOC=emmalloc --closure=1)
target_link_options(miskeenity-canvas PRIVATE -sNO_FILESYSTEM=1 -sASSERTIONS=0 -sMALLOC=emmalloc )#--closure=1)
else()
embed_files(window_icon ./resources/textures/miskeen_32.png)
add_dependencies(miskeenity-canvas webgpu_cpp webgpu_dawn)
Expand Down

0 comments on commit 9ddefa2

Please sign in to comment.