From 79c1a6c43dbc5248bbf0289958ff31f8d25a4cf0 Mon Sep 17 00:00:00 2001 From: Ryo Onodera Date: Sun, 19 May 2024 16:12:33 +0900 Subject: [PATCH] Fix the careful job with a workaround ref: https://github.com/RalfJung/cargo-careful/issues/31 --- ci/careful.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/careful.sh b/ci/careful.sh index dffe2e734..ec668ae11 100755 --- a/ci/careful.sh +++ b/ci/careful.sh @@ -3,6 +3,9 @@ set -euxo pipefail IFS=$'\n\t' cd "$(dirname "$0")"/.. -export RUSTFLAGS="${RUSTFLAGS:-} -Z randomize-layout" +# TODO: Use the system's default linker instead of rust-lld, which recently +# became the default until this cargo-careful bug is fixed: +# https://github.com/RalfJung/cargo-careful/issues/31 +export RUSTFLAGS="${RUSTFLAGS:-} -Z randomize-layout -Z linker-features=-lld" cargo careful test --all --all-features --exclude benchmarks -- --test-threads=1