Skip to content

Commit a483da9

Browse files
committed
fix: resolve C2338 coroutine deprecation static assertion error on Windows MSVC 14.41+
1 parent 5541be7 commit a483da9

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v3.5.29+63
2+
- **Windows Build Fix**: Fixed C2338 coroutine deprecation static assertion error on Windows by defining `_SILENCE_EXPERIMENTAL_COROUTINE_DEPRECATION_WARNINGS` in CMake for MSVC 14.41+.
3+
14
## v3.5.28+62
25
- **Windows Desktop Resiliency & Premium UI**:
36
- **SMTC Double Initialization Crash**: Fixed a critical Windows background crash (`flutter_rust_bridge has not been initialized`) by safely pruning duplicate `SMTCWindows.initialize()` calls from `main.dart`, correctly restoring initialization hierarchy before `MediaKit`.

‎windows/CMakeLists.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}")
3232
# Use Unicode for all projects.
3333
add_definitions(-DUNICODE -D_UNICODE)
3434

35+
# Suppress coroutine deprecation warnings from C++20 for MSVC 14.41+
36+
add_definitions(-D_SILENCE_EXPERIMENTAL_COROUTINE_DEPRECATION_WARNINGS)
37+
3538
# Compilation settings that should be applied to most targets.
3639
#
3740
# Be cautious about adding new options here, as plugins use this function by

0 commit comments

Comments
 (0)