Skip to content

Commit 5cc78a0

Browse files
committed
CI: fix CI-mingw failures
- disable new clang 23 lifetime-safety suggestion warnings - remove MINGW32 since MSYS2 is phasing out 32-bit environments and mingw-w64-i686-python-pytest is no longer available
1 parent 6d40e65 commit 5cc78a0

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

‎.github/workflows/CI-mingw.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ jobs:
1616
matrix:
1717
compiler: [g++, clang++]
1818
# TODO: add MSYS after #556 is fixed
19-
msystem: [MINGW32, MINGW64, CLANG64]
19+
# MINGW32 was removed since MSYS2 is phasing out 32-bit environments
20+
msystem: [MINGW64, CLANG64]
2021
include:
2122
#- msystem: MSYS
2223
# pkg-prefix: ''
23-
- msystem: MINGW32
24-
pkg-prefix: 'mingw-w64-i686-'
2524
- msystem: MINGW64
2625
pkg-prefix: 'mingw-w64-x86_64-'
2726
- msystem: CLANG64
@@ -33,9 +32,6 @@ jobs:
3332
exclude:
3433
- msystem: CLANG64
3534
compiler: g++
36-
# the mingw-w64-i686-clang package is no longer available
37-
- msystem: MINGW32
38-
compiler: clang++
3935
fail-fast: false
4036

4137
runs-on: windows-2025

‎CMakeLists.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
7777
add_compile_options_safe(-Wno-thread-safety-negative)
7878
add_compile_options_safe(-Wno-thread-safety-beta)
7979

80+
# TODO: add [[clang::lifetimebound]] annotations?
81+
add_compile_options_safe(-Wno-lifetime-safety-intra-tu-suggestions)
82+
add_compile_options_safe(-Wno-lifetime-safety-intra-tu-constructor-suggestions)
83+
add_compile_options_safe(-Wno-lifetime-safety-cross-tu-constructor-suggestions)
84+
8085
# TODO: fix these?
8186
add_compile_options(-Wno-padded)
8287
add_compile_options(-Wno-sign-conversion)

0 commit comments

Comments
 (0)