From e66e8f22e9cf327e0cd0a4c15b2a40a028069dc5 Mon Sep 17 00:00:00 2001 From: Shravan Narayan Date: Wed, 31 Jan 2024 16:08:15 -0600 Subject: [PATCH] Update for latest wasm2c --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b3cd0b8..5f0b246 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -213,8 +213,10 @@ if(DEV) add_link_options(${RLBOX_SANITIZER_LINK_FLAGS}) endif() -set(WASM2C_RUNTIME_CODE ${WASM2C_RUNTIME_SOURCE_DIR}/wasm-rt-impl.c ${CMAKE_SOURCE_DIR}/src/wasm2c_rt_minwasi.c ${CMAKE_SOURCE_DIR}/src/wasm2c_rt_mem.c) -list(FILTER WASM2C_RUNTIME_CODE EXCLUDE REGEX "${WASM2C_RUNTIME_SOURCE_DIR}/examples/.*" ) +set(WASM2C_RUNTIME_CODE ${WASM2C_RUNTIME_SOURCE_DIR}/wasm-rt-impl.c + ${WASM2C_RUNTIME_SOURCE_DIR}/wasm-rt-mem-impl.c + ${CMAKE_SOURCE_DIR}/src/wasm2c_rt_minwasi.c + ${CMAKE_SOURCE_DIR}/src/wasm2c_rt_mem.c) add_library(glue_lib STATIC ${GLUE_LIB_C} ${WASM2C_RUNTIME_CODE}) target_include_directories(glue_lib PRIVATE ${mod_wasm2c_SOURCE_DIR}/wasm2c