]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: build the release clang build with _FORTIFY_SOURCE=3 main
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 29 Jul 2026 11:16:31 +0000 (13:16 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 29 Jul 2026 16:18:58 +0000 (01:18 +0900)
Since this combination is known to cause interesting issues in our
allocation machinery.

.github/workflows/unit-tests.sh

index b2f21b5825bba07f889f9ea0c257f556e849223f..885dad1c1ad3233cd6772d1e83aa544a68f7849f 100755 (executable)
@@ -108,6 +108,8 @@ for phase in "${PHASES[@]}"; do
                     MESON_ARGS+=(-Dman=enabled)
                 else
                     MESON_ARGS+=(-Dmode=release --optimization=2)
+                    CFLAGS+=" -D_FORTIFY_SOURCE=3"
+                    CXXFLAGS+=" -D_FORTIFY_SOURCE=3"
                 fi
 
                 # Some variation: remove machine-id, like on Debian builders to ensure unit tests still work.