product-mini/platforms/windows: set C++17 explicitly (#4269)

The recent LLVM uses std::optional, which is C++17.
This commit is contained in:
YAMAMOTO Takashi
2025-05-13 13:40:24 +09:00
committed by GitHub
parent 7446b088c9
commit 477d66d00f

View File

@ -14,6 +14,8 @@ set (WAMR_BUILD_PLATFORM "windows")
set (CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
set (CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
set(CMAKE_CXX_STANDARD 17)
add_definitions(-DCOMPILING_WASM_RUNTIME_API=1)
# Set WAMR_BUILD_TARGET, currently values supported: