Skip to content

Commit 86c2fad

Browse files
committed
product-mini/platforms/windows: set C++17 explicitly
The recent LLVM uses std::optional, which is C++17.
1 parent 0a8994a commit 86c2fad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)