Skip to content

Commit

Permalink
Reduce wasm file size #26
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsv committed Apr 15, 2023
1 parent 10303ad commit 7f1f234
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ source_group ("OCCT" FILES ${OcctSourceFiles})
if (${EMSCRIPTEN})
add_executable (OcctImportJS ${OcctImportJSSourceFiles} ${OcctSourceFiles})
target_compile_options (OcctImportJS PUBLIC "$<$<CONFIG:Debug>:-gsource-map>")
target_compile_options (OcctImportJS PUBLIC "$<$<CONFIG:Release>:-Oz>")
target_compile_options (OcctImportJS PUBLIC -fexceptions)

target_link_options (OcctImportJS PUBLIC -sMODULARIZE=1)
Expand Down
2 changes: 1 addition & 1 deletion dist/occt-import-js.js

Large diffs are not rendered by default.

Binary file modified dist/occt-import-js.wasm
Binary file not shown.

0 comments on commit 7f1f234

Please sign in to comment.