CI: turn on assertion checks

This turn on assertions from qbt codebase so that testers can verify the assertions really hold.

PR #21499.
This commit is contained in:
Chocobo1 2024-10-06 16:13:14 +08:00 committed by GitHub
parent f81d8a85e9
commit 6ed662c68b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -99,7 +99,7 @@ jobs:
- name: Build qBittorrent
run: |
CXXFLAGS="$CXXFLAGS -Werror -Wno-error=deprecated-declarations" \
CXXFLAGS="$CXXFLAGS -DQT_FORCE_ASSERTS -Werror -Wno-error=deprecated-declarations" \
LDFLAGS="$LDFLAGS -gz" \
cmake \
-B build \

View file

@ -101,7 +101,7 @@ jobs:
- name: Build qBittorrent
run: |
CXXFLAGS="$CXXFLAGS ${{ env.harden_flags }} -Werror" \
CXXFLAGS="$CXXFLAGS ${{ env.harden_flags }} -DQT_FORCE_ASSERTS -Werror" \
LDFLAGS="$LDFLAGS -gz" \
cmake \
-B build \

View file

@ -127,7 +127,7 @@ jobs:
- name: Build qBittorrent
run: |
$env:CXXFLAGS+=" /WX"
$env:CXXFLAGS+="/DQT_FORCE_ASSERTS /WX"
cmake `
-B build `
-G "Ninja" `