Skip to content

Commit

Permalink
cleanup wamr cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
malytomas committed Jan 22, 2025
1 parent 4ea0687 commit 7a7924d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
10 changes: 0 additions & 10 deletions externals/wamr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,13 @@ 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("$<$<CONFIG:Debug>:BH_DEBUG=1>")

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)
Expand All @@ -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()
8 changes: 0 additions & 8 deletions externals/wamr/os_thread_get_stack_boundary_dummy.c

This file was deleted.

0 comments on commit 7a7924d

Please sign in to comment.