Skip to content

Commit b770a2d

Browse files
committed
Update CMakeLists.txt
1 parent e34490c commit b770a2d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

unittests/CppInterOp/TestSharedLib/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ set_output_directory(TestSharedLib
1515
LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/unittests/bin/$<CONFIG>/
1616
)
1717

18-
set_target_properties(TestSharedLib
19-
PROPERTIES NO_SONAME 1
18+
set_target_properties(TestSharedLib PROPERTIES
19+
NO_SONAME 1
20+
COMPILE_FLAGS "-s SIDE_MODULE=1"
21+
LINK_FLAGS "-s WASM_BIGINT -s SIDE_MODULE=1 -Wl,--export-all"
22+
SUFFIX ".wasm"
2023
)
2124

2225
if(EMSCRIPTEN)

0 commit comments

Comments
 (0)