diff --git a/externals/wamr/CMakeLists.txt b/externals/wamr/CMakeLists.txt index 9e82f1fc..b62184fd 100644 --- a/externals/wamr/CMakeLists.txt +++ b/externals/wamr/CMakeLists.txt @@ -39,7 +39,6 @@ set(WAMR_DISABLE_HW_BOUND_CHECK 0) set(WAMR_DISABLE_STACK_HW_BOUND_CHECK 0) set(WAMR_DISABLE_WAKEUP_BLOCKING_OP 0) add_compile_definitions(BUILTIN_LIBC_BUFFERED_PRINTF=1 BUILTIN_LIBC_BUFFERED_PRINT_SIZE=512) - add_compile_definitions("$<$:BH_DEBUG=1>") include("${CMAKE_CURRENT_LIST_DIR}/wamr/build-scripts/runtime_lib.cmake") @@ -47,7 +46,6 @@ include("${CMAKE_CURRENT_LIST_DIR}/wamr/build-scripts/runtime_lib.cmake") file(GLOB_RECURSE iwasm_headers "${CMAKE_CURRENT_LIST_DIR}/wamr/core/*.h") add_library(iwasm_static STATIC ${WAMR_RUNTIME_LIB_SOURCE} ${iwasm_headers}) target_include_directories(iwasm_static INTERFACE "wamr/core/iwasm/include") -target_link_libraries(iwasm_static INTERFACE ${LLVM_AVAILABLE_LIBS} ${UV_A_LIBS}) target_compile_definitions(iwasm_static PUBLIC WASM_RUNTIME_API_EXTERN= WASM_API_EXTERN= COMPILING_WASM_RUNTIME_API=1) if(MSVC) @@ -57,11 +55,3 @@ if(MSVC) set(CMAKE_ASM_MASM_FLAGS "${CMAKE_ASM_MASM_FLAGS} /safeseh") endif() endif() - -if(WAMR_DISABLE_STACK_OVERFLOW_CHECK) - message(STATUS "disabling stack overflow detection") - set(file "${CMAKE_CURRENT_LIST_DIR}/wamr/core/shared/platform/common/posix/posix_thread.c") - set(flags "-Dos_thread_get_stack_boundary=os_thread_get_stack_boundary_original") - set_source_files_properties(${file} PROPERTIES COMPILE_FLAGS "${flags}") - target_sources(iwasm_static PRIVATE os_thread_get_stack_boundary_dummy.c) -endif() diff --git a/externals/wamr/os_thread_get_stack_boundary_dummy.c b/externals/wamr/os_thread_get_stack_boundary_dummy.c deleted file mode 100644 index 7012bd3f..00000000 --- a/externals/wamr/os_thread_get_stack_boundary_dummy.c +++ /dev/null @@ -1,8 +0,0 @@ -#include -#include - -uint8_t * -os_thread_get_stack_boundary() -{ - return NULL; -}