From 29f354020e4733ab3a173c80e4929d215ad380e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Wed, 10 Jun 2020 14:32:09 +0000 Subject: [PATCH] Remove compilation optimisations on 1.36.0 --- ci/script.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci/script.sh b/ci/script.sh index 7b86e52aa6..c9a9c05027 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -36,6 +36,12 @@ main() { mkdir -p ci/builds + # Current MSRV cannot handle profiles, remove compilation optimisations + if [[ $TRAVIS_RUST_VERSION == 1.*.* ]]; then + echo "Removing optimisation profiles" + sed -i '/^\[profile.*build-override]$/,/^$/{/^#/!{/^$/!d}}' Cargo.toml + fi + if [ $T = x86_64-unknown-linux-gnu ]; then if [[ $TRAVIS_RUST_VERSION == 1.*.* ]]; then # test on a fixed version (MSRV) to avoid problems with changes in rustc diagnostics