Skip to content

Commit 7471d5a

Browse files
authored
wamr-wasi-extensions/socket: disable reference-types (#4392)
and add a comment to explain why.
1 parent f449b79 commit 7471d5a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

wamr-wasi-extensions/socket/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ target_include_directories(wamr-wasi-socket
1313
$<BUILD_INTERFACE:${wasi_socket_header_dir}>
1414
$<INSTALL_INTERFACE:include>)
1515

16+
# as this is a library, be extra conservative about wasm features
17+
# to improve compatibilities. as this particular library is just a
18+
# simple static stub, extra wasm features won't benefit us much anyway.
19+
# note that LLVM-19 enables reference-types by default.
20+
target_compile_options(wamr-wasi-socket PRIVATE -mno-reference-types)
21+
1622
install(TARGETS wamr-wasi-socket
1723
EXPORT wamr-wasi-socket-config
1824
PUBLIC_HEADER DESTINATION include)

0 commit comments

Comments
 (0)