Skip to content

Commit 26787c9

Browse files
AnonymousAnonymous
authored andcommitted
fix: build
1 parent 3d06822 commit 26787c9

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ jobs:
7474
7575
windows:
7676
name: Windows Build
77-
runs-on: windows-latest
77+
# windows-latest currently ships newer VS/CMake versions that break
78+
# older native Flutter plugins used by this project.
79+
runs-on: windows-2022
7880
steps:
7981
- uses: actions/checkout@v6
8082

windows/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ function(APPLY_STANDARD_SETTINGS TARGET)
4242
target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100")
4343
target_compile_options(${TARGET} PRIVATE /EHsc)
4444
target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0")
45+
target_compile_definitions(${TARGET} PRIVATE "_SILENCE_EXPERIMENTAL_COROUTINE_DEPRECATION_WARNINGS")
4546
target_compile_definitions(${TARGET} PRIVATE "$<$<CONFIG:Debug>:_DEBUG>")
4647
endfunction()
4748

0 commit comments

Comments
 (0)