From 2665327a4167e04bcb13a48248c5413456de17f7 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Mon, 20 Jul 2020 17:51:32 +0200 Subject: [PATCH] travis: compile with -O1 with clang 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/travis-ci/managers/debian.sh b/travis-ci/managers/debian.sh index a2a987d8fd..ab8a5b5fb8 100755 --- a/travis-ci/managers/debian.sh +++ b/travis-ci/managers/debian.sh @@ -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 ;;