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:
1 parent
5fbd1caee2
commit
5f6d5b3b7e
2 files changed
+15
No files matched your search
@@ -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' }}
|
||||||
|
|||||||
@@ -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::"
|
||||||
|
|||||||
Reference in new issue
Block a user