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

@ -193,6 +193,13 @@ else()
enable_language (ASM)
endif()
# it will expose the runtime APIs.
# you'll use the following command to check the exported APIs
# dumpbin.exe /EXPORTS xxx
if (MSVC)
add_compile_definitions(COMPILING_WASM_RUNTIME_API=1)
endif ()
include (${SHARED_PLATFORM_CONFIG})
include (${SHARED_DIR}/mem-alloc/mem_alloc.cmake)
include (${IWASM_DIR}/common/iwasm_common.cmake)