From: Frantisek Sumsal Date: Wed, 13 Jan 2021 20:48:36 +0000 (+0100) Subject: ci: optimize the sanitized build under gcc as well X-Git-Tag: v248-rc1~349^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56a017cb0dda3e5134f5c7d42ef9516be81082a9;p=thirdparty%2Fsystemd.git ci: optimize the sanitized build under gcc as well --- diff --git a/.github/workflows/ubuntu-unit-tests.sh b/.github/workflows/ubuntu-unit-tests.sh index eccd048e28a..532ee7bf789 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