Skip to content

Commit

Permalink
Add -s MODULARIZE=1 flag link flags for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbarton authored Jan 27, 2025
1 parent 429a530 commit 82343f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unittests/CppInterOp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ add_cppinterop_unittest(CppInterOpTests

if(EMSCRIPTEN)
set_target_properties(CppInterOpTests PROPERTIES
LINK_FLAGS "-s MAIN_MODULE=1"
LINK_FLAGS "-s MAIN_MODULE=1 -s MODULARIZE=1"
)
endif()
target_link_libraries(CppInterOpTests
Expand Down Expand Up @@ -57,7 +57,7 @@ target_link_libraries(DynamicLibraryManagerTests

if(EMSCRIPTEN)
target_link_options(DynamicLibraryManagerTests PRIVATE
"SHELL: -s MAIN_MODULE=1"
"SHELL: -s MAIN_MODULE=1 -s MODULARIZE=1"
)
endif()

Expand Down

0 comments on commit 82343f6

Please sign in to comment.