Skip to content

Commit 421a6c4

Browse files
authored
Fix posix build when libc wasi is disabled and debug interp is enabled (#3503)
This change supports building with `-DWAMR_BUILD_LIBC_WASI=0` and `-DWAMR_BUILD_DEBUG_INTERP=1`, otherwise the os_socket_* functions will be undefined.
1 parent 8239dd4 commit 421a6c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/shared/platform/common/posix/platform_api_posix.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ if (NOT WAMR_BUILD_LIBC_WASI EQUAL 1)
99
list(REMOVE_ITEM source_all
1010
${PLATFORM_COMMON_POSIX_DIR}/posix_file.c
1111
${PLATFORM_COMMON_POSIX_DIR}/posix_clock.c
12+
)
13+
endif()
14+
15+
if ((NOT WAMR_BUILD_LIBC_WASI EQUAL 1) AND (NOT WAMR_BUILD_DEBUG_INTERP EQUAL 1))
16+
list(REMOVE_ITEM source_all
1217
${PLATFORM_COMMON_POSIX_DIR}/posix_socket.c
1318
)
1419
else()

0 commit comments

Comments
 (0)