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 - name: Build qBittorrent
run: | run: |
CXXFLAGS="$CXXFLAGS -Werror -Wno-error=deprecated-declarations" \ CXXFLAGS="$CXXFLAGS -DQT_FORCE_ASSERTS -Werror -Wno-error=deprecated-declarations" \
LDFLAGS="$LDFLAGS -gz" \ LDFLAGS="$LDFLAGS -gz" \
cmake \ cmake \
-B build \ -B build \

View File

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

View File

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