Closed bnason-nf closed 4 weeks ago
Hi @wenyongh, yes, the intention is for the else()
clause to be different. The reason is that when we are building with WAMR_BUILD_DEBUG_INTERP=1
, we want to compile posix_socket.c, and we also want to use platform_common_libc_util.cmake
regardless of the setting of WAMR_BUILD_LIBC_WASI
. I tested all four combinations of WAMR_BUILD_LIBC_WASI
and WAMR_BUILD_DEBUG_INTERP
before submitting this pull request, so unless I made a mistake I think this is behaving as intended.
Hi @wenyongh, yes, the intention is for the
else()
clause to be different. The reason is that when we are building withWAMR_BUILD_DEBUG_INTERP=1
, we want to compile posix_socket.c, and we also want to useplatform_common_libc_util.cmake
regardless of the setting ofWAMR_BUILD_LIBC_WASI
. I tested all four combinations ofWAMR_BUILD_LIBC_WASI
andWAMR_BUILD_DEBUG_INTERP
before submitting this pull request, so unless I made a mistake I think this is behaving as intended.
OK, got it, thanks.
This change supports building with
WAMR_BUILD_LIBC_WASI=0
andWAMR_BUILD_DEBUG_INTERP=1
, otherwise theos_socket_*
functions will be undefined.