summaryrefslogtreecommitdiff
path: root/travis-ci
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2020-07-20 17:51:32 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-07-21 02:00:04 +0900
commit2665327a4167e04bcb13a48248c5413456de17f7 (patch)
treef10f0f365f3210db84b571465a6f783492e59d4d /travis-ci
parentd7d717b7e2525f50cf868f41b45584655ee2851b (diff)
downloadsystemd-2665327a4167e04bcb13a48248c5413456de17f7.tar.gz
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.
Diffstat (limited to 'travis-ci')
-rwxr-xr-xtravis-ci/managers/debian.sh3
1 files changed, 2 insertions, 1 deletions
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
;;