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.
This commit is contained in:
Benbuck Nason 2024-06-05 18:37:28 -07:00 committed by GitHub
parent 8239dd4aa7
commit 421a6c4301
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,11 @@ if (NOT WAMR_BUILD_LIBC_WASI EQUAL 1)
list(REMOVE_ITEM source_all
${PLATFORM_COMMON_POSIX_DIR}/posix_file.c
${PLATFORM_COMMON_POSIX_DIR}/posix_clock.c
)
endif()
if ((NOT WAMR_BUILD_LIBC_WASI EQUAL 1) AND (NOT WAMR_BUILD_DEBUG_INTERP EQUAL 1))
list(REMOVE_ITEM source_all
${PLATFORM_COMMON_POSIX_DIR}/posix_socket.c
)
else()