From e96e528d54f675f157cd0a99922842d6035aee3e Mon Sep 17 00:00:00 2001 From: Owen Rafferty Date: Thu, 3 Nov 2022 13:02:34 -0500 Subject: [PATCH] rust: 1.65.0 --- extra/rust/build | 8 ++++++-- extra/rust/checksums | 8 ++++---- extra/rust/sources | 6 +++--- extra/rust/version | 2 +- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/extra/rust/build b/extra/rust/build index 5892e776..d97dfd26 100755 --- a/extra/rust/build +++ b/extra/rust/build @@ -39,14 +39,18 @@ profiler = false full-bootstrap = false EOF +# If possible, use system rust to bootstrap. maj="${2%%.*}" min="${2%.*}" min="${min#*.}" +# Fall back to vendor binaries if rustc, et al are not present, or if one of +# them suffered ABI breakage. rust_version=$(rustc --version 2>/dev/null) || rust_version=null +cargo --version 2>/dev/null || rust_version=null +rustfmt --version 2>/dev/null || rust_version=null rust_version="${rust_version#rustc }" -# If possible, use system rust to bootstrap. case "$rust_version" in "$maj.$min".*|"$maj.$((min - 1))".*) cat >> config.toml <