Skip to content

Commit 477d66d

Browse files
authored
product-mini/platforms/windows: set C++17 explicitly (#4269)
The recent LLVM uses std::optional, which is C++17.
1 parent 7446b08 commit 477d66d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

product-mini/platforms/windows/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ set (WAMR_BUILD_PLATFORM "windows")
1414
set (CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
1515
set (CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
1616

17+
set(CMAKE_CXX_STANDARD 17)
18+
1719
add_definitions(-DCOMPILING_WASM_RUNTIME_API=1)
1820

1921
# Set WAMR_BUILD_TARGET, currently values supported:

0 commit comments

Comments
 (0)