Skip to content

Commit 9e9bf41

Browse files
committed
Add support for UVWASI in MSVC build configuration
1 parent b7d3b6d commit 9e9bf41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

samples/inst-context/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ set (WAMR_BUILD_LIBC_BUILTIN 1)
5353

5454
if (NOT MSVC)
5555
set (WAMR_BUILD_LIBC_WASI 1)
56+
else ()
57+
set (WAMR_BUILD_LIBC_UVWASI 1)
5658
endif ()
5759

5860
if (NOT MSVC)
@@ -85,6 +87,8 @@ set_target_properties (inst-context PROPERTIES POSITION_INDEPENDENT_CODE ON)
8587

8688
if (APPLE)
8789
target_link_libraries (inst-context vmlib -lm -ldl -lpthread)
90+
elseif (MSVC)
91+
target_link_libraries (inst-context vmlib -lm -ldl -lpthread -lrt ${UV_A_LIBS})
8892
else ()
8993
target_link_libraries (inst-context vmlib -lm -ldl -lpthread -lrt)
9094
endif ()

0 commit comments

Comments
 (0)