]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: optimize the sanitized build under gcc as well
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 13 Jan 2021 20:48:36 +0000 (21:48 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 13 Jan 2021 20:51:44 +0000 (21:51 +0100)
.github/workflows/ubuntu-unit-tests.sh

index eccd048e28ac6293b71801216ee254dd85b2bac5..532ee7bf7898774a10bb7f8631f5c10eaa3ccb64 100755 (executable)
@@ -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