Enable runtime API exposure for MSVC builds (#4287)

This commit is contained in:
liang.he
2025-05-28 20:30:05 +08:00
committed by GitHub
parent 3ab9f84026
commit 3580d1a386
5 changed files with 8 additions and 7 deletions

View File

@ -152,10 +152,6 @@ include (${SHARED_DIR}/utils/uncommon/shared_uncommon.cmake)
set (THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
if (MSVC)
add_definitions(-DCOMPILING_WASM_RUNTIME_API=1)
endif ()
add_library (vmlib ${WAMR_RUNTIME_LIB_SOURCE})
set_target_properties (vmlib PROPERTIES OUTPUT_NAME iwasm)
target_include_directories(vmlib INTERFACE