Skip to content

Commit

Permalink
Reduce size of wasm build (f3d-app#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meakk authored Jun 6, 2024
1 parent b3c030f commit 0943cde
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions webassembly/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,20 @@ set_target_properties(f3djs PROPERTIES
target_link_libraries(f3djs PRIVATE libf3d)

target_link_options(f3djs PRIVATE
"$<IF:$<CONFIG:Release>,-Oz,-O0>"
"--bind"
"-O1"
"--closure 1"
"SHELL:--preload-file ${F3D_WASM_DATA_FILE}@/"
"SHELL:-sEXPORT_NAME=f3d"
"SHELL:-sALLOW_MEMORY_GROWTH=1"
"SHELL:-sEMULATE_FUNCTION_POINTER_CASTS=0"
"SHELL:-sMODULARIZE=1"
"SHELL:-sUSE_PTHREADS=0"
"SHELL:-sWASM=1"
"SHELL:-sASSERTIONS=1"
"SHELL:-sFORCE_FILESYSTEM"
"SHELL:-sEXPORTED_RUNTIME_METHODS=FS"
"SHELL:-sERROR_ON_WASM_CHANGES_AFTER_LINK"
"SHELL:-sWASM_BIGINT"
"SHELL:-sNO_DISABLE_EXCEPTION_CATCHING"
"SHELL:-sEXPORT_EXCEPTION_HANDLING_HELPERS"
)

# Option to copy app.html file to index.html in the binary folder
Expand Down

0 comments on commit 0943cde

Please sign in to comment.