ci/msys2: add build with -ftrivial-auto-var-init

Just to catch uninitialized variables early. Build all three                                                                                          unint/zero/pattern to compare the results between them and we don't                                                                                   accidentally depend on implicit initialization in tests.
This commit is contained in:
Kacper Michajłow committed 2026-01-18 12:59:16 +01:00
1 parent 5fbd1caee2
commit 5f6d5b3b7e
2 files changed
+15

No files matched your search

+8
View File
@@ -572,9 +572,16 @@ jobs:
include: include:
- sys: "clang64" - sys: "clang64"
os: "windows-latest" os: "windows-latest"
auto-var-init: "uninitialized"
- sys: "clang64" - sys: "clang64"
os: "windows-latest" os: "windows-latest"
asan: true asan: true
- sys: "clang64"
os: "windows-latest"
auto-var-init: "zero"
- sys: "clang64"
os: "windows-latest"
auto-var-init: "pattern"
- sys: "mingw64" - sys: "mingw64"
os: "windows-latest" os: "windows-latest"
- sys: "ucrt64" - sys: "ucrt64"
@@ -631,6 +638,7 @@ jobs:
env: env:
SYS: ${{ matrix.sys }} SYS: ${{ matrix.sys }}
ASAN: ${{ matrix.asan }} ASAN: ${{ matrix.asan }}
AUTO_VAR_INIT: ${{ matrix.auto-var-init }}
- name: Print meson log - name: Print meson log
if: ${{ failure() && steps.build.outcome == 'failure' }} if: ${{ failure() && steps.build.outcome == 'failure' }}
+7
View File
@@ -14,6 +14,13 @@ if [[ -n "$ASAN" ]]; then
) )
fi fi
if [[ -n "$AUTO_VAR_INIT" ]]; then
args+=(
-Dc_args="-ftrivial-auto-var-init=$AUTO_VAR_INIT"
-Dcpp_args="-ftrivial-auto-var-init=$AUTO_VAR_INIT"
)
fi
echo "::group::Building subrandr" echo "::group::Building subrandr"
build_subrandr "/$SYS" build_subrandr "/$SYS"
echo "::endgroup::" echo "::endgroup::"