diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-06-04 12:27:29 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-06-04 12:27:29 +0200 |
commit | d56cf40dd7915bf9fd0940ad7e86f0e5e84580d6 (patch) | |
tree | 9b87f592110eb95e80c28dc275ccd0f408f8d4a2 /.github | |
parent | mkosi: Drop $OPTIMIZATION variable (diff) | |
download | systemd-d56cf40dd7915bf9fd0940ad7e86f0e5e84580d6.tar.xz systemd-d56cf40dd7915bf9fd0940ad7e86f0e5e84580d6.zip |
mkosi: Build Arch Linux image with -D_FORTIFY_SOURCE=3
_FORTIFY_SOURCE requires optimizations to be enabled so we set -O2
as well.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/mkosi.yml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index a50798b2f1..cfdfa8eba0 100644 --- a/.github/workflows/mkosi.yml +++ b/.github/workflows/mkosi.yml @@ -58,30 +58,37 @@ jobs: release: rolling sanitizers: "" llvm: 0 + cflags: "-O2 -D_FORTIFY_SOURCE=3" - distro: debian release: testing sanitizers: "" llvm: 0 + cflags: "-Og" - distro: ubuntu release: noble sanitizers: "" llvm: 0 + cflags: "-Og" - distro: fedora release: "40" sanitizers: "" llvm: 0 + cflags: "-Og" - distro: fedora release: rawhide sanitizers: address,undefined llvm: 1 + cflags: "-Og" - distro: opensuse release: tumbleweed sanitizers: "" llvm: 0 + cflags: "-Og" - distro: centos release: "9" sanitizers: "" llvm: 0 + cflags: "-Og" steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 @@ -127,8 +134,7 @@ jobs: Environment= # Build debuginfo packages since we'll be publishing the packages as artifacts. WITH_DEBUG=1 - # Enabling optimizations significantly speeds up integration tests. - CFLAGS=-Og + CFLAGS="${{ matrix.cflags }}" SANITIZERS=${{ matrix.sanitizers }} MESON_OPTIONS=--werror LLVM=${{ matrix.llvm }} |