]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
travis: compile with -O1 with clang
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 20 Jul 2020 15:51:32 +0000 (17:51 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 Jul 2020 17:00:04 +0000 (02:00 +0900)
libc in the Debian container got updated to 2.31, which in combination
with clang-9 triggers systemd/systemd#14865.

This has been fixed by https://reviews.llvm.org/D74712 which is (to my
knowledge) included in clang-10. To mitigate this without upgrading to
clang-10 we can compile with -O1 which works around it as well, see
https://bugzilla.redhat.com/show_bug.cgi?id=1803203.

travis-ci/managers/debian.sh

index a2a987d8fd407fa2cfa56b9ef8b54bfe50252bb4..ab8a5b5fb8a0879553afc4f31532fe10e96927c7 100755 (executable)
@@ -59,8 +59,9 @@ for phase in "${PHASES[@]}"; do
         RUN|RUN_GCC|RUN_CLANG)
             if [[ "$phase" = "RUN_CLANG" ]]; then
                 ENV_VARS="-e CC=clang -e CXX=clang++"
+                MESON_ARGS="--optimization=1"
             fi
-            docker exec $ENV_VARS -it $CONT_NAME meson --werror -Dtests=unsafe -Dslow-tests=true -Dsplit-usr=true -Dman=true build
+            docker exec $ENV_VARS -it $CONT_NAME meson --werror -Dtests=unsafe -Dslow-tests=true -Dsplit-usr=true -Dman=true $MESON_ARGS build
             $DOCKER_EXEC ninja -v -C build
             docker exec -e "TRAVIS=$TRAVIS" -it $CONT_NAME ninja -C build test
             ;;