mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-15 22:21:21 +00:00
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:
parent
8239dd4aa7
commit
421a6c4301
|
@ -9,6 +9,11 @@ if (NOT WAMR_BUILD_LIBC_WASI EQUAL 1)
|
||||||
list(REMOVE_ITEM source_all
|
list(REMOVE_ITEM source_all
|
||||||
${PLATFORM_COMMON_POSIX_DIR}/posix_file.c
|
${PLATFORM_COMMON_POSIX_DIR}/posix_file.c
|
||||||
${PLATFORM_COMMON_POSIX_DIR}/posix_clock.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
|
${PLATFORM_COMMON_POSIX_DIR}/posix_socket.c
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user