Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ if(EMSCRIPTEN)
endif()

option(BUILD_STATIC_LIB "Build as a static library" OFF)
if(MSVC)
if(MSVC OR EMSCRIPTEN)
# We don't have dllexport declarations set up for Windows yet.
# With emscripten we require a static library to create binaryen_js correctly.
set(BUILD_STATIC_LIB ON)
endif()

Expand Down
Loading