From f7f1a8665d265ee95f02f99247e9c24067954eba Mon Sep 17 00:00:00 2001 From: david Date: Tue, 4 Feb 2025 10:45:51 +0100 Subject: [PATCH] Rustc: Update to 1.84.1 link ststic against LLVM use already installed rustto compile new version --- rustc-1.84.1-0.build.sh | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/rustc-1.84.1-0.build.sh b/rustc-1.84.1-0.build.sh index 5f14a93..bfc911c 100755 --- a/rustc-1.84.1-0.build.sh +++ b/rustc-1.84.1-0.build.sh @@ -1,7 +1,7 @@ #! /bin/bash PKG=rustc -VERSION=1.84.0 +VERSION=1.84.1 BUILD=0 PREFIX=/pkg/$PKG-$VERSION-$BUILD @@ -51,7 +51,7 @@ profile = "dist" change-id = 133207 [llvm] -link-shared=true +link-shared=false # Do not download pre-built LLVM, instead either use the system # LLVM or build LLVM from the shipped source. @@ -72,6 +72,27 @@ docs = false # install cargo as well as rust extended = true +# Instead of downloading the src/stage0 version of the compiler +# specified, use this rustc binary instead as the stage0 snapshot compiler. +# If you set this, you likely want to set cargo as well. +rustc = "/usr/local/package/bin/rustc" + +# Instead of downloading the src/stage0 version of Cargo specified, use +# this Cargo binary instead to build all Rust code +# If you set this, you likely want to set rustc as well. +cargo = "/usr/local/package/bin/cargo" + +# Instead of downloading the src/stage0 version of rustfmt specified, +# use this rustfmt binary instead as the stage0 snapshot rustfmt. +rustfmt = "/usr/local/package/bin/rustfmt" + +# Instead of downloading the src/stage0 version of cargo-clippy specified, +# use this cargo-clippy binary instead as the stage0 snapshot cargo-clippy. +# +# Note that this option should be used with the same toolchain as the rustc option above. +# Otherwise, clippy is likely to fail due to a toolchain conflict. +cargo-clippy = "/usr/local/package/bin/cargo-clippy" + # Use the source code shipped in the tarball for the dependencies. # The combination of this and the "locked-deps" entry avoids downloading # many crates from Internet, and makes the Rustc build more stable.