Skip to content

Commit 82343f6

Browse files
authored
Add -s MODULARIZE=1 flag link flags for tests
1 parent 429a530 commit 82343f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unittests/CppInterOp/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ add_cppinterop_unittest(CppInterOpTests
1616

1717
if(EMSCRIPTEN)
1818
set_target_properties(CppInterOpTests PROPERTIES
19-
LINK_FLAGS "-s MAIN_MODULE=1"
19+
LINK_FLAGS "-s MAIN_MODULE=1 -s MODULARIZE=1"
2020
)
2121
endif()
2222
target_link_libraries(CppInterOpTests
@@ -57,7 +57,7 @@ target_link_libraries(DynamicLibraryManagerTests
5757

5858
if(EMSCRIPTEN)
5959
target_link_options(DynamicLibraryManagerTests PRIVATE
60-
"SHELL: -s MAIN_MODULE=1"
60+
"SHELL: -s MAIN_MODULE=1 -s MODULARIZE=1"
6161
)
6262
endif()
6363

0 commit comments

Comments
 (0)