Skip to content

Commit 9bdda81

Browse files
committed
wip: simplify linker options
fix: remove shell: for linker opts Update index.js Revert "fix: remove shell: for linker opts" This reverts commit 23acd2a. Revert "fix: remove shell: for linker opts" This reverts commit 23acd2a.
1 parent 748d1a8 commit 9bdda81

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,8 @@ if(ZMQ_WASM OR CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
9898
add_link_options("SHELL:-s MODULARIZE=1")
9999
add_link_options("SHELL:-s EXPORT_NAME='createModule'")
100100
add_link_options("SHELL:-s ENVIRONMENT='web,worker'")
101-
add_link_options("--no-entry")
101+
add_link_options("SHELL:--no-entry")
102102
add_link_options("SHELL:-Wl,--strip-all")
103-
add_link_options("SHELL:-fvisibility=hidden")
104-
add_link_options("SHELL:-fvisibility-inlines-hidden")
105-
add_link_options("SHELL:-Wl,-gc-sections")
106-
add_compile_options("-flto=full")
107-
add_link_options("-flto=full")
108103

109104
# Allow undefined symbols on Linux for runtime loading
110105
add_link_options("SHELL:-Wl,--unresolved-symbols=ignore-all")

0 commit comments

Comments
 (0)