Skip to content

Commit cb786f3

Browse files
committed
github-ci: add flto build
Ubuntu and Fedora packing system build with -flto=auto by default, so update one test to use -flto=auto. Also build with -O2 as that combination can cause issues such as https://redmine.openinfosecfoundation.org/issues/7824. Also adds vectorscan to the build.
1 parent ff3961d commit cb786f3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/builds.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ jobs:
789789

790790
# Fedora build using GCC.
791791
fedora-42-gcc:
792-
name: Fedora 42 (gcc, debug, asan, wshadow, rust-strict)
792+
name: Fedora 42 (gcc, debug, flto, asan, wshadow, rust-strict)
793793
runs-on: ubuntu-latest
794794
container: fedora:42
795795
needs: [prepare-deps, prepare-cbindgen]
@@ -840,6 +840,7 @@ jobs:
840840
pkgconfig \
841841
python3-yaml \
842842
sudo \
843+
vectorscan-devel \
843844
which \
844845
zlib-devel
845846
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
@@ -853,7 +854,7 @@ jobs:
853854
- run: ./autogen.sh
854855
- run: ./configure --enable-warnings --enable-debug --enable-unittests --disable-shared --enable-rust-strict --enable-hiredis --enable-nfqueue
855856
env:
856-
CFLAGS: "${{ env.DEFAULT_CFLAGS }} -Wshadow -fsanitize=address -fno-omit-frame-pointer"
857+
CFLAGS: "${{ env.DEFAULT_CFLAGS }} -Wshadow -fsanitize=address -fno-omit-frame-pointer -flto=auto -O2"
857858
LDFLAGS: "-fsanitize=address"
858859
ac_cv_func_realloc_0_nonnull: "yes"
859860
ac_cv_func_malloc_0_nonnull: "yes"

0 commit comments

Comments
 (0)