Browse Source

GHA CI: enable run-time checks in C++ library

Those have minimal impact on run-time:
https://www.gnu.org/software/libc/manual/html_node/Source-Fortification.html
https://bugs.launchpad.net/kicad/+bug/1838448/comments/40

PR #19608.
adaptive-webui-19844
Chocobo1 1 year ago committed by GitHub
parent
commit
88d32d57ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/workflows/ci_macos.yaml
  2. 4
      .github/workflows/ci_ubuntu.yaml

2
.github/workflows/ci_macos.yaml

@ -87,7 +87,7 @@ jobs:
- name: Build qBittorrent - name: Build qBittorrent
run: | run: |
CXXFLAGS="$CXXFLAGS -Wno-gnu-zero-variadic-macro-arguments -Werror -Wno-error=deprecated-declarations" \ CXXFLAGS="$CXXFLAGS -Werror -Wno-error=deprecated-declarations" \
LDFLAGS="$LDFLAGS -gz" \ LDFLAGS="$LDFLAGS -gz" \
cmake \ cmake \
-B build \ -B build \

4
.github/workflows/ci_ubuntu.yaml

@ -24,6 +24,7 @@ jobs:
env: env:
boost_path: "${{ github.workspace }}/../boost" boost_path: "${{ github.workspace }}/../boost"
harden_flags: "-D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS"
steps: steps:
- name: Checkout repository - name: Checkout repository
@ -66,6 +67,7 @@ jobs:
--recurse-submodules \ --recurse-submodules \
https://github.com/arvidn/libtorrent.git https://github.com/arvidn/libtorrent.git
cd libtorrent cd libtorrent
CXXFLAGS="$CXXFLAGS ${{ env.harden_flags }}" \
cmake \ cmake \
-B build \ -B build \
-G "Ninja" \ -G "Ninja" \
@ -87,7 +89,7 @@ jobs:
- name: Build qBittorrent - name: Build qBittorrent
run: | run: |
CXXFLAGS="$CXXFLAGS -Werror" \ CXXFLAGS="$CXXFLAGS ${{ env.harden_flags }} -Werror" \
LDFLAGS="$LDFLAGS -gz" \ LDFLAGS="$LDFLAGS -gz" \
cmake \ cmake \
-B build \ -B build \

Loading…
Cancel
Save