summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2021-01-13 21:48:36 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2021-01-13 21:51:44 +0100
commit56a017cb0dda3e5134f5c7d42ef9516be81082a9 (patch)
tree0bd592a33ed6da0e896caf886c94804a77a0d7d5 /.github/workflows
parentb5a9b601c3301b208dba23e339dd5d2f0a32c9e4 (diff)
downloadsystemd-56a017cb0dda3e5134f5c7d42ef9516be81082a9.tar.gz
ci: optimize the sanitized build under gcc as well
Diffstat (limited to '.github/workflows')
-rwxr-xr-x.github/workflows/ubuntu-unit-tests.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/ubuntu-unit-tests.sh b/.github/workflows/ubuntu-unit-tests.sh
index eccd048e28..532ee7bf78 100755
--- a/.github/workflows/ubuntu-unit-tests.sh
+++ b/.github/workflows/ubuntu-unit-tests.sh
@@ -47,13 +47,15 @@ for phase in "${PHASES[@]}"; do
meson test -C build --print-errorlogs
;;
RUN_ASAN_UBSAN|RUN_GCC_ASAN_UBSAN|RUN_CLANG_ASAN_UBSAN)
+ MESON_ARGS=(--optimization=1)
+
if [[ "$phase" = "RUN_CLANG_ASAN_UBSAN" ]]; then
export CC=clang
export CXX=clang++
# Build fuzzer regression tests only with clang (for now),
# see: https://github.com/systemd/systemd/pull/15886#issuecomment-632689604
# -Db_lundef=false: See https://github.com/mesonbuild/meson/issues/764
- MESON_ARGS=(-Db_lundef=false -Dfuzz-tests=true --optimization=1)
+ MESON_ARGS+=(-Db_lundef=false -Dfuzz-tests=true)
fi
meson --werror -Dtests=unsafe -Db_sanitize=address,undefined "${MESON_ARGS[@]}" build
ninja -C build -v