File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
unittests/CppInterOp/TestSharedLib Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,13 @@ set_output_directory(TestSharedLib
15
15
LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR} /unittests/bin/$<CONFIG>/
16
16
)
17
17
18
- set_target_properties (TestSharedLib PROPERTIES
18
+
19
+ if (EMSCRIPTEN)
20
+ set_target_properties (TestSharedLib PROPERTIES
19
21
NO_SONAME 1
20
22
COMPILE_FLAGS "-s SIDE_MODULE=1"
21
23
LINK_FLAGS "-s WASM_BIGINT -s SIDE_MODULE=1 -Wl,--export-all"
22
24
SUFFIX ".wasm"
23
- )
24
-
25
- if (EMSCRIPTEN)
26
- # Without this you get an error that -gc-sections and -r cannot be used together.
27
- # Not sure I have picked the correct one to keep
28
- target_link_options (TestSharedLib PRIVATE
29
- "SHELL: -Wl,--no-gc-sections -s LINKABLE=1 -s WASM_BIGINT -s SIDE_MODULE=1"
30
25
)
31
26
endif ()
32
27
You can’t perform that action at this time.
0 commit comments