Thread View: linux.gentoo.dev
5 messages
5 total messages
Started by kangie
Thu, 05 Nov 2026 07:00
[gentoo-dev] [PATCH 0/4] Rust sysroots and rustc-dev component
Author: kangie
Date: Thu, 05 Nov 2026 07:00
Date: Thu, 05 Nov 2026 07:00
35 lines
2689 bytes
2689 bytes
From: Matt Jolly <kangie@gentoo.org>
This patch series adds the rustc-dev component (staged from some old Chromium work)
and support for the aarch64-unknown-none target for both the binary and from-source
Rust packages for the most recent versions.
The aarch64-unknown-none target is required for building and running Rust code on
bare-metal aarch64 systems - in this case to build the Asahi m1n1 bootloader.
These changes should serve as a template for adding additional upstream-supoprted
components and targets (tier2 support and up) to both flavours.
Matt Jolly (4):
cargo.eclass: cargo_live_src_unpack don't cd to ${S}
dev-lang/rust{,-bin}: add rustc-dev component
profiles/desc: add rust_sysroots_aarch64_unknown_none
dev-lang/rust{,-bin}: add rust_sysroots_aarch64_unknown_none
dev-lang/rust-bin/Manifest | 96 +++++++++++++++++
dev-lang/rust-bin/metadata.xml | 1 +
dev-lang/rust-bin/rust-bin-1.97.1.ebuild | 67 +++++++++++-
dev-lang/rust-bin/rust-bin-1.98.1.ebuild | 68 +++++++++++-
dev-lang/rust-bin/rust-bin-1.99.0.ebuild | 68 +++++++++++-
dev-lang/rust-bin/rust-bin-9999.ebuild | 70 +++++++++++-
dev-lang/rust/metadata.xml | 1 +
dev-lang/rust/rust-1.97.1.ebuild | 127 ++++++++++++++++++++--
dev-lang/rust/rust-1.98.1.ebuild | 132 +++++++++++++++++++++--
dev-lang/rust/rust-1.99.0.ebuild | 127 ++++++++++++++++++++--
dev-lang/rust/rust-9999.ebuild | 127 ++++++++++++++++++++--
eclass/cargo.eclass | 4 -
profiles/desc/rust_sysroots.desc | 3 +-
13 files changed, 843 insertions(+), 48 deletions(-)
--
2.56.0
[gentoo-dev] [PATCH 3/4] profiles/desc: add rust_sysroots_aarch64_unknown_none
Author: kangie
Date: Thu, 05 Nov 2026 07:00
Date: Thu, 05 Nov 2026 07:00
24 lines
1949 bytes
1949 bytes
From: Matt Jolly <kangie@gentoo.org> This target is required to build m1n1 binaries for Asahi / Apple silicon. Signed-off-by: Matt Jolly <kangie@gentoo.org> --- profiles/desc/rust_sysroots.desc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profiles/desc/rust_sysroots.desc b/profiles/desc/rust_sysroots.desc index fe9fcdacf5fc..f7fd4849589c 100644 --- a/profiles/desc/rust_sysroots.desc +++ b/profiles/desc/rust_sysroots.desc @@ -1,5 +1,6 @@ -# Copyright 2025 Gentoo Authors. +# Copyright 2025-2026 Gentoo Authors. # Distributed under the terms of the GNU General Public License v2 +aarch64_unknown_none - Aarch64 bare metal target (bootloaders, etc.) bpf - Berkeley Packet Filter target wasm - WebAssembly target -- 2.56.0
[gentoo-dev] [PATCH 1/4] cargo.eclass: cargo_live_src_unpack don't cd to ${S}
Author: kangie
Date: Thu, 05 Nov 2026 07:00
Date: Thu, 05 Nov 2026 07:00
34 lines
2270 bytes
2270 bytes
From: Matt Jolly <kangie@gentoo.org>
Changing directory to ${S} inside this function means that Rust sources in
subdirectories are unable to fetch their dependencies.
Signed-off-by: Matt Jolly <kangie@gentoo.org>
---
eclass/cargo.eclass | 4 ----
1 file changed, 4 deletions(-)
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index c6415e4f1484..863e37a4dda3 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -637,8 +637,6 @@ cargo_live_src_unpack() {
umask "${EVCS_UMASK}" || die "Bad options to umask: ${EVCS_UMASK}"
fi
- pushd "${S}" > /dev/null || die
-
# Respect user settings before cargo_gen_config is called.
if [[ ! ${CARGO_TERM_COLOR} ]]; then
[[ "${NOCOLOR}" = true || "${NOCOLOR}" = yes ]] && export CARGO_TERM_COLOR=never
@@ -669,8 +667,6 @@ cargo_live_src_unpack() {
ln -sv "${ECARGO_REGISTRY_DIR}/git" "${ECARGO_HOME}/git" || die
fi
- popd > /dev/null || die
-
# Restore settings if needed.
[[ ${unset_color} ]] && unset CARGO_TERM_COLOR
[[ ${unset_verbose} ]] && unset CARGO_TERM_VERBOSE
--
2.56.0
[gentoo-dev] [PATCH 2/4] dev-lang/rust{,-bin}: add rustc-dev component
Author: kangie
Date: Thu, 05 Nov 2026 07:00
Date: Thu, 05 Nov 2026 07:00
308 lines
17347 bytes
17347 bytes
From: Matt Jolly <kangie@gentoo.org>
This is required to link against rust compiler internals for (e.g.)
Google's Crubit etc.
This should provide a template for adding other Rust components to both
the binary and source ebuilds.
Signed-off-by: Matt Jolly <kangie@gentoo.org>
---
dev-lang/rust-bin/metadata.xml | 1 +
dev-lang/rust-bin/rust-bin-1.97.1.ebuild | 16 +++++++++++++++-
dev-lang/rust-bin/rust-bin-1.98.1.ebuild | 16 +++++++++++++++-
dev-lang/rust-bin/rust-bin-1.99.0.ebuild | 16 +++++++++++++++-
dev-lang/rust-bin/rust-bin-9999.ebuild | 16 +++++++++++++++-
dev-lang/rust/metadata.xml | 1 +
dev-lang/rust/rust-1.97.1.ebuild | 6 +++++-
dev-lang/rust/rust-1.98.1.ebuild | 6 +++++-
dev-lang/rust/rust-1.99.0.ebuild | 6 +++++-
dev-lang/rust/rust-9999.ebuild | 6 +++++-
10 files changed, 82 insertions(+), 8 deletions(-)
diff --git a/dev-lang/rust-bin/metadata.xml b/dev-lang/rust-bin/metadata.xml
index 74a0ec35c5a8..2d251778eea1 100644
--- a/dev-lang/rust-bin/metadata.xml
+++ b/dev-lang/rust-bin/metadata.xml
@@ -9,6 +9,7 @@
<flag name="clippy">Install clippy, Rust code linter</flag>
<flag name="rust-analyzer">Install rust-analyzer, A Rust compiler front-end for IDEs (language server)</flag>
<flag name="rust-src">Install rust-src, needed by developer tools and for build-std (cross)</flag>
+ <flag name="rustc-dev">Install rustc-dev, internal compiler libraries needed to link to compiler internals (e.g. for crubit)</flag>
<flag name="rustfmt">Install rustfmt, Rust code formatter</flag>
</use>
<upstream>
diff --git a/dev-lang/rust-bin/rust-bin-1.97.1.ebuild b/dev-lang/rust-bin/rust-bin-1.97.1.ebuild
index 6a2fe3faac6e..8975b8061d7f 100644
--- a/dev-lang/rust-bin/rust-bin-1.97.1.ebuild
+++ b/dev-lang/rust-bin/rust-bin-1.97.1.ebuild
@@ -23,6 +23,7 @@ else
# curl -Ls static.rust-lang.org/dist/channel-rust-${PV}.toml | grep "xz_url.*rust-src"
SRC_URI="$(rust_all_arch_uris "rust-${PV}")
rust-src? ( ${RUST_TOOLCHAIN_BASEURL%/}/2026-07-16/rust-src-${PV}.tar.xz )
+ rustc-dev? ( $(rust_all_arch_uris "rustc-dev-${PV}") )
"
KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
fi
@@ -55,7 +56,7 @@ fi
LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
SLOT="${PV%%_*}" # Beta releases get to share the same SLOT as the eventual stable
-IUSE="big-endian +clippy cpu_flags_x86_sse2 doc prefix rust-analyzer rust-src +rustfmt"
+IUSE="big-endian +clippy cpu_flags_x86_sse2 doc prefix rust-analyzer rust-src rustc-dev +rustfmt"
# net-misc/curl is needed for our own bootstrapped rustc, since cross-compiling bundled curl is not supported
RDEPEND="
@@ -116,6 +117,19 @@ src_unpack() {
tar -xf "${WORKDIR}/rust-src-${PV}.tar.xz" || die "Failed to unpack nightly rust-src tarball"
fi
+ if use rustc-dev; then
+ local rustc_dev_url=$(grep "xz_url.*rustc-dev-nightly-${rust_target}" "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2)
+ einfo "Fetching nightly rustc-dev for ${rust_target} ..."
+ curl --progress-bar -L "${rustc_dev_url}" -O || die "Failed to fetch nightly rustc-dev"
+
+ if use verify-sig; then
+ curl --progress-bar -L "${rustc_dev_url}.asc" -O || die "Failed to fetch nightly rustc-dev signature"
+ verify-sig_verify_detached "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" \
+ "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz.asc"
+ fi
+ tar -xf "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" || die "Failed to unpack nightly rustc-dev"
+ fi
+
local v
for v in $(multilib_get_enabled_abi_pairs); do
rust_target="$(rust_abi $(get_abi_CHOST ${v##*.}))"
diff --git a/dev-lang/rust-bin/rust-bin-1.98.1.ebuild b/dev-lang/rust-bin/rust-bin-1.98.1.ebuild
index 618ce739f3d1..8cff25596eed 100644
--- a/dev-lang/rust-bin/rust-bin-1.98.1.ebuild
+++ b/dev-lang/rust-bin/rust-bin-1.98.1.ebuild
@@ -23,6 +23,7 @@ else
# curl -Ls static.rust-lang.org/dist/channel-rust-${PV}.toml | grep "xz_url.*rust-src"
SRC_URI="$(rust_all_arch_uris "rust-${PV}")
rust-src? ( ${RUST_TOOLCHAIN_BASEURL%/}/2026-09-03/rust-src-${PV}.tar.xz )
+ rustc-dev? ( $(rust_all_arch_uris "rustc-dev-${PV}") )
"
KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
fi
@@ -55,7 +56,7 @@ fi
LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
SLOT="${PV%%_*}" # Beta releases get to share the same SLOT as the eventual stable
-IUSE="big-endian +clippy cpu_flags_x86_sse2 doc prefix rust-analyzer rust-src +rustfmt"
+IUSE="big-endian +clippy cpu_flags_x86_sse2 doc prefix rust-analyzer rust-src rustc-dev +rustfmt"
# net-misc/curl is needed for our own bootstrapped rustc, since cross-compiling bundled curl is not supported
RDEPEND="
@@ -119,6 +120,19 @@ src_unpack() {
local v
for v in $(multilib_get_enabled_abi_pairs); do
rust_target="$(rust_abi $(get_abi_CHOST ${v##*.}))"
+
+ if use rustc-dev; then
+ local rustc_dev_url=$(grep "xz_url.*rustc-dev-nightly-${rust_target}" "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2)
+ einfo "Fetching nightly rustc-dev for ${rust_target} ..."
+ curl --progress-bar -L "${rustc_dev_url}" -O || die "Failed to fetch nightly rustc-dev"
+
+ if use verify-sig; then
+ curl --progress-bar -L "${rustc_dev_url}.asc" -O || die "Failed to fetch nightly rustc-dev signature"
+ verify-sig_verify_detached "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" \
+ "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz.asc"
+ fi
+ tar -xf "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" || die "Failed to unpack nightly rustc-dev"
+ fi
rust_bin_url=$(grep "xz_url.*rust-nightly-${rust_target}" "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2)
einfo "Using nightly Rust from ${rust_bin_url} for ${rust_target}"
diff --git a/dev-lang/rust-bin/rust-bin-1.99.0.ebuild b/dev-lang/rust-bin/rust-bin-1.99.0.ebuild
index c7d6874a2a23..a1d93b3ff52a 100644
--- a/dev-lang/rust-bin/rust-bin-1.99.0.ebuild
+++ b/dev-lang/rust-bin/rust-bin-1.99.0.ebuild
@@ -23,6 +23,7 @@ else
# curl -Ls static.rust-lang.org/dist/channel-rust-${PV}.toml | grep "xz_url.*rust-src"
SRC_URI="$(rust_all_arch_uris "rust-${PV}")
rust-src? ( ${RUST_TOOLCHAIN_BASEURL%/}/2026-10-01/rust-src-${PV}.tar.xz )
+ rustc-dev? ( $(rust_all_arch_uris "rustc-dev-${PV}") )
"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
fi
@@ -55,7 +56,7 @@ fi
LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
SLOT="${PV%%_*}" # Beta releases get to share the same SLOT as the eventual stable
-IUSE="big-endian +clippy cpu_flags_x86_sse2 doc prefix rust-analyzer rust-src +rustfmt"
+IUSE="big-endian +clippy cpu_flags_x86_sse2 doc prefix rust-analyzer rust-src rustc-dev +rustfmt"
# net-misc/curl is needed for our own bootstrapped rustc, since cross-compiling bundled curl is not supported
RDEPEND="
@@ -119,6 +120,19 @@ src_unpack() {
local v
for v in $(multilib_get_enabled_abi_pairs); do
rust_target="$(rust_abi $(get_abi_CHOST ${v##*.}))"
+
+ if use rustc-dev; then
+ local rustc_dev_url=$(grep "xz_url.*rustc-dev-nightly-${rust_target}" "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2)
+ einfo "Fetching nightly rustc-dev for ${rust_target} ..."
+ curl --progress-bar -L "${rustc_dev_url}" -O || die "Failed to fetch nightly rustc-dev"
+
+ if use verify-sig; then
+ curl --progress-bar -L "${rustc_dev_url}.asc" -O || die "Failed to fetch nightly rustc-dev signature"
+ verify-sig_verify_detached "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" \
+ "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz.asc"
+ fi
+ tar -xf "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" || die "Failed to unpack nightly rustc-dev"
+ fi
rust_bin_url=$(grep "xz_url.*rust-nightly-${rust_target}" "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2)
einfo "Using nightly Rust from ${rust_bin_url} for ${rust_target}"
diff --git a/dev-lang/rust-bin/rust-bin-9999.ebuild b/dev-lang/rust-bin/rust-bin-9999.ebuild
index fa10160814b6..17ddf327ee6f 100644
--- a/dev-lang/rust-bin/rust-bin-9999.ebuild
+++ b/dev-lang/rust-bin/rust-bin-9999.ebuild
@@ -23,6 +23,7 @@ else
# curl -Ls static.rust-lang.org/dist/channel-rust-${PV}.toml | grep "xz_url.*rust-src"
SRC_URI="$(rust_all_arch_uris "rust-${PV}")
rust-src? ( ${RUST_TOOLCHAIN_BASEURL%/}/2026-03-26/rust-src-${PV}.tar.xz )
+ rustc-dev? ( $(rust_all_arch_uris "rustc-dev-${PV}") )
"
KEYWORDS=""~mips # ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86""
fi
@@ -56,7 +57,7 @@ fi
LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
SLOT="${PV%%_*}" # Beta releases get to share the same SLOT as the eventual stable
-IUSE="big-endian +clippy cpu_flags_x86_sse2 +doc prefix rust-analyzer rust-src +rustfmt"
+IUSE="big-endian +clippy cpu_flags_x86_sse2 +doc prefix rust-analyzer rust-src rustc-dev +rustfmt"
# net-misc/curl is needed for our own bootstrapped rustc, since cross-compiling bundled curl is not supported
RDEPEND="
@@ -120,6 +121,19 @@ src_unpack() {
local v
for v in $(multilib_get_enabled_abi_pairs); do
rust_target="$(rust_abi $(get_abi_CHOST ${v##*.}))"
+
+ if use rustc-dev; then
+ local rustc_dev_url=$(grep "xz_url.*rustc-dev-nightly-${rust_target}" "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2)
+ einfo "Fetching nightly rustc-dev for ${rust_target} ..."
+ curl --progress-bar -L "${rustc_dev_url}" -O || die "Failed to fetch nightly rustc-dev"
+
+ if use verify-sig; then
+ curl --progress-bar -L "${rustc_dev_url}.asc" -O || die "Failed to fetch nightly rustc-dev signature"
+ verify-sig_verify_detached "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" \
+ "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz.asc"
+ fi
+ tar -xf "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" || die "Failed to unpack nightly rustc-dev"
+ fi
rust_bin_url=$(grep "xz_url.*rust-nightly-${rust_target}" "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2)
einfo "Using nightly Rust from ${rust_bin_url} for ${rust_target}"
diff --git a/dev-lang/rust/metadata.xml b/dev-lang/rust/metadata.xml
index 4f4fb5c56451..b4e07abe9a6b 100644
--- a/dev-lang/rust/metadata.xml
+++ b/dev-lang/rust/metadata.xml
@@ -12,6 +12,7 @@
<flag name="mrustc-bootstrap">Use <pkg>dev-lang/mrustc</pkg> to build the bootstrap Rust sysroot from this package's source</flag>
<flag name="rust-analyzer">Install rust-analyzer, A Rust compiler front-end for IDEs (language server)</flag>
<flag name="rust-src">Install rust-src, needed by developer tools and for build-std (cross)</flag>
+ <flag name="rustc-dev">Install rustc-dev, internal compiler libraries needed to link to compiler internals (e.g. for crubit)</flag>
<flag name="rustfmt">Install rustfmt, Rust code formatter</flag>
<flag name="system-llvm">Use the system LLVM installation</flag>
</use>
diff --git a/dev-lang/rust/rust-1.97.1.ebuild b/dev-lang/rust/rust-1.97.1.ebuild
index e3529d07f690..a3703804d518 100644
--- a/dev-lang/rust/rust-1.97.1.ebuild
+++ b/dev-lang/rust/rust-1.97.1.ebuild
@@ -90,7 +90,7 @@ LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
SLOT="${PV%%_*}" # Beta releases get to share the same SLOT as the eventual stable
IUSE="big-endian +clippy cpu_flags_x86_sse2 debug dist doc llvm-libunwind lto"
-IUSE+=" +rustfmt rust-analyzer rust-src +system-llvm test"
+IUSE+=" +rustfmt rust-analyzer rustc-dev rust-src +system-llvm test"
IUSE+=" ${ALL_LLVM_TARGETS[*]} ${ALL_RUST_SYSROOTS[*]}"
if [[ ${PV} = *9999* ]]; then
@@ -845,6 +845,10 @@ src_install() {
DESTDIR="${D}" "${EPYTHON}" ./x.py install -v \
--config="${S}"/bootstrap.toml -j$(get_makeopts_jobs) || die
+ # Not required for general use, installs rustc-dev component (i.e. internal rlibs) needed to link to compiler internals for (e.g.) crubit
+ use rustc-dev && DESTDIR="${D}" "${EPYTHON}" ./x.py install rustc-dev -v \
+ --config="${S}"/bootstrap.toml -j$(get_makeopts_jobs) || die
+
docompress /usr/lib/${PN}/${SLOT}/share/man/
# bash-completion files are installed by dev-lang/rust-common instead
diff --git a/dev-lang/rust/rust-1.98.1.ebuild b/dev-lang/rust/rust-1.98.1.ebuild
index 6f2c485c098f..e500f51f1404 100644
--- a/dev-lang/rust/rust-1.98.1.ebuild
+++ b/dev-lang/rust/rust-1.98.1.ebuild
@@ -90,7 +90,7 @@ LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
SLOT="${PV%%_*}" # Beta releases get to share the same SLOT as the eventual stable
IUSE="big-endian +clippy cpu_flags_x86_sse2 debug dist doc llvm-libunwind lto"
-IUSE+=" +rustfmt rust-analyzer rust-src +system-llvm test"
+IUSE+=" +rustfmt rust-analyzer rustc-dev rust-src +system-llvm test"
IUSE+=" ${ALL_LLVM_TARGETS[*]} ${ALL_RUST_SYSROOTS[*]}"
if [[ ${PV} = *9999* ]]; then
@@ -845,6 +845,10 @@ src_install() {
DESTDIR="${D}" "${EPYTHON}" ./x.py install -v \
--config="${S}"/bootstrap.toml -j$(get_makeopts_jobs) || die
+ # Not required for general use, installs rustc-dev component (i.e. internal rlibs) needed to link to compiler internals for (e.g.) crubit
+ use rustc-dev && DESTDIR="${D}" "${EPYTHON}" ./x.py install rustc-dev -v \
+ --config="${S}"/bootstrap.toml -j$(get_makeopts_jobs) || die
+
docompress /usr/lib/${PN}/${SLOT}/share/man/
# bash-completion files are installed by dev-lang/rust-common instead
diff --git a/dev-lang/rust/rust-1.99.0.ebuild b/dev-lang/rust/rust-1.99.0.ebuild
index 8468acdec6bb..013e9dc9db59 100644
--- a/dev-lang/rust/rust-1.99.0.ebuild
+++ b/dev-lang/rust/rust-1.99.0.ebuild
@@ -90,7 +90,7 @@ LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
SLOT="${PV%%_*}" # Beta releases get to share the same SLOT as the eventual stable
IUSE="big-endian +clippy cpu_flags_x86_sse2 debug dist doc llvm-libunwind lto"
-IUSE+=" +rustfmt rust-analyzer rust-src +system-llvm test"
+IUSE+=" +rustfmt rust-analyzer rustc-dev rust-src +system-llvm test"
IUSE+=" ${ALL_LLVM_TARGETS[*]} ${ALL_RUST_SYSROOTS[*]}"
if [[ ${PV} = *9999* ]]; then
@@ -845,6 +845,10 @@ src_install() {
DESTDIR="${D}" "${EPYTHON}" ./x.py install -v \
--config="${S}"/bootstrap.toml -j$(get_makeopts_jobs) || die
+ # Not required for general use, installs rustc-dev component (i.e. internal rlibs) needed to link to compiler internals for (e.g.) crubit
+ use rustc-dev && DESTDIR="${D}" "${EPYTHON}" ./x.py install rustc-dev -v \
+ --config="${S}"/bootstrap.toml -j$(get_makeopts_jobs) || die
+
docompress /usr/lib/${PN}/${SLOT}/share/man/
# bash-completion files are installed by dev-lang/rust-common instead
diff --git a/dev-lang/rust/rust-9999.ebuild b/dev-lang/rust/rust-9999.ebuild
index 25151fa77c2f..90f4b6867ffa 100644
--- a/dev-lang/rust/rust-9999.ebuild
+++ b/dev-lang/rust/rust-9999.ebuild
@@ -90,7 +90,7 @@ LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
SLOT="${PV%%_*}" # Beta releases get to share the same SLOT as the eventual stable
IUSE="big-endian +clippy cpu_flags_x86_sse2 debug dist +doc llvm-libunwind lto"
-IUSE+=" +rustfmt rust-analyzer rust-src +system-llvm test"
+IUSE+=" +rustfmt rust-analyzer rustc-dev rust-src +system-llvm test"
IUSE+=" ${ALL_LLVM_TARGETS[*]} ${ALL_RUST_SYSROOTS[*]}"
if [[ ${PV} = *9999* ]]; then
@@ -845,6 +845,10 @@ src_install() {
DESTDIR="${D}" "${EPYTHON}" ./x.py install -v \
--config="${S}"/bootstrap.toml -j$(get_makeopts_jobs) || die
+ # Not required for general use, installs rustc-dev component (i.e. internal rlibs) needed to link to compiler internals for (e.g.) crubit
+ use rustc-dev && DESTDIR="${D}" "${EPYTHON}" ./x.py install rustc-dev -v \
+ --config="${S}"/bootstrap.toml -j$(get_makeopts_jobs) || die
+
docompress /usr/lib/${PN}/${SLOT}/share/man/
# bash-completion files are installed by dev-lang/rust-common instead
--
2.56.0
[gentoo-dev] [PATCH 4/4] dev-lang/rust{,-bin}: add rust_sysroots_aarch64_unknown_none
Author: kangie
Date: Thu, 05 Nov 2026 07:00
Date: Thu, 05 Nov 2026 07:00
1408 lines
87854 bytes
87854 bytes
From: Matt Jolly <kangie@gentoo.org>
This commit adds support for building the
aarch64-unknown-none{,-softfloat} baremetal target to dev-lang/rust and
dev-lang/rust-bin.
In the interests of making this (hopefully) build everywhere, we've
added a pre-build check that ensures that a suitable aarch64 toolchain
is available - meaning any `arm64` toolchain, suitable LLVM (i.e.
llvm-core/llvm:${LLVM_SLOT}[llvm_targets_Aarch64], or a suitable
crossdev GCC) and should `die` early if it's not possible to build.
This should serve as a decent template for adding additional
USE-selectable targets to both the binary (rustup) and from-source
ebuilds.
Signed-off-by: Matt Jolly <kangie@gentoo.org>
---
dev-lang/rust-bin/Manifest | 96 +++++++++++++++++
dev-lang/rust-bin/rust-bin-1.97.1.ebuild | 71 +++++++++++--
dev-lang/rust-bin/rust-bin-1.98.1.ebuild | 62 +++++++++--
dev-lang/rust-bin/rust-bin-1.99.0.ebuild | 62 +++++++++--
dev-lang/rust-bin/rust-bin-9999.ebuild | 64 ++++++++++--
dev-lang/rust/rust-1.97.1.ebuild | 123 ++++++++++++++++++++--
dev-lang/rust/rust-1.98.1.ebuild | 128 +++++++++++++++++++++--
dev-lang/rust/rust-1.99.0.ebuild | 123 ++++++++++++++++++++--
dev-lang/rust/rust-9999.ebuild | 123 ++++++++++++++++++++--
9 files changed, 788 insertions(+), 64 deletions(-)
diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest
index 5a78a940a883..9e62c8deb34b 100644
--- a/dev-lang/rust-bin/Manifest
+++ b/dev-lang/rust-bin/Manifest
@@ -422,3 +422,99 @@ DIST rust-src-1.96.1.tar.xz 3868228 BLAKE2B f509efa5be0be11da292a9b2d9f4ae87667e
DIST rust-src-1.97.1.tar.xz 5660384 BLAKE2B 23357e49cc9ba35d1f9f1999af32589fd6e12790cb16ec1895aa9272a8f73a4bea93b0ad4d2b0d330ba46bc5458ca9ade9b5a2400d7f96ef093d4f537a567672 SHA512 fe1ba24325d63c66de18c5bd877cd247173ee3bbb67f6fdc54519c52841658f602d28b3b648849ac9a916b9b5c5f7684415bd8c05556137d717bf73367650db7
DIST rust-src-1.98.1.tar.xz 5741168 BLAKE2B b5d80e3f45b4d36da9ea2cf6262e41f0213a7c3903a9011850f3ecd4d56de29a1da2e9a98c6da910a786ca21df2ade52e8703a8749b224ac9680a82812cd15ab SHA512 9b3536ecedc719e151c51c11ff1a3f67972ccfbadaa57a5d395f436ab45db78a27e1cb55268cdc72389c333080de08cdf9af0012c4cdda7e384fd24369518198
DIST rust-src-1.99.0.tar.xz 5863232 BLAKE2B 2c9cdbdeae05bfd49600dbe63dfb7385e430c6764313f4f36dc9d0bec1c6a755017bb4dcc5caa0f9d89981c092bf3993963c35f8b4e37092e3acea8029fc78b9 SHA512 51df29b6e62e6811dc38a874eb241c27776aaa3e69a601ed24d822094d340fe53010e0fe24a6260e725360c8444269d388bffe9cc55f566adac97d57fb805e6a
+DIST rust-std-1.97.1-aarch64-unknown-none-softfloat.tar.xz 15130096 BLAKE2B 8af10195ef1369b67aee46ec51ad878c6a3388f3c2f6ad14aabffa3cb683a5af5ab40513a6f67321941e54b0c2579e173671b2736fae5a94bf6fc8f15c884bbe SHA512 f7168fe7b833a0da0be6a2ae1e20d1aec76b4c73b043f5c8862b741b941931f7f93973a48c494d5b7216d70e36b6886dd3c6da96ac07e40dafaa5b38adf0e103
+DIST rust-std-1.97.1-aarch64-unknown-none-softfloat.tar.xz.asc 801 BLAKE2B cf0a62fea61aa8625117dc9e21c90f098a830c355f944cb2980a3c31e909edcf40965026ef719b57b5d605b4695a07fb17ef787b8642fff86c44d8a43e8cecd7 SHA512 4afaeb596d9c0509f93ff4a5b9bee378253d362b63a679015186707b21874273c36f84844932c98f53f27cc464a93bc12b9dcbf8612b56e7a77269418acf68c0
+DIST rust-std-1.97.1-aarch64-unknown-none.tar.xz 15100808 BLAKE2B 5e17e2194a5a1d33ff46b7f04765bffe1eb12f0cd1b9ec769b00224ad20847737c261dea16e485669685a0883606826677cd433c010e2aabe187ad8abf5e165b SHA512 9f7668510ab327db5cc14164640664c37b6f1ea363d34456696c220aecd3c08bc42cf7f785b95ad5180777787ceac87bcf1440c810aad1310b8ae1ccb034d2f9
+DIST rust-std-1.97.1-aarch64-unknown-none.tar.xz.asc 801 BLAKE2B c743b34382b2f506d8eabf544b031b81e8963d2a68f50acfef586d3157977d7ac2617e2be2194ca8b4cd55f89ed9ed59a970476a184426f5fc3271741235bc65 SHA512 553744ac5e90a72f21d4c6d961827ef9e698dd0a7da171827f5f5dded064960ff0fe9a058c67e5c451caa459783a13b59cd446388bb171e42579aad2799c1d9e
+DIST rust-std-1.98.1-aarch64-unknown-none-softfloat.tar.xz 15445828 BLAKE2B e5f905d0a5e5d5e106c219461494abd2ef373cf8e73397ca3639103d3411539853d0f6440b36ca08fa48610f21be9b69ae814c93a05d59422f5a72e4f416b207 SHA512 e8e54e72591252fc246db45a234883574adbf6603720e074a294ebf9ff6a06268587acb41f8bd60f46faa7de44da64be4280f2477c245ecc2a3bf077b929a398
+DIST rust-std-1.98.1-aarch64-unknown-none-softfloat.tar.xz.asc 801 BLAKE2B 29e7e72385555302c83c83d2907ce352d122e6bcfd87fc731f49f70bfb815543bc1f4371af94ea563dec617f11fc74efeb014d1d3976c42379b7ff6366889558 SHA512 bb6f8e28cb7dc3ad7201038b5e073b7fefef65bf70ca0994cd58fb328a5818be5091aad1cd19bdd7c9f47252f1529808dec5287f0fa8a71951c4b2ff3a6f06eb
+DIST rust-std-1.98.1-aarch64-unknown-none.tar.xz 15472280 BLAKE2B ee1f3dd4a96e88539ce3ce4a92ba8be1070a0c36a8670470690e52203ff2a77b8f5c1ed4f08d7e9d88d75ea372f4a68e4c4f6505075ad11bfb7771b6b3f4a1f2 SHA512 6154855743feab22dfe0b6332b018aa0b6a56c9fc1fa5cd25cbc7626c0bf34cd8a53b375e38f52c3030c8bebaa63534861e47751066a700bbc5d69b4ec47262b
+DIST rust-std-1.98.1-aarch64-unknown-none.tar.xz.asc 801 BLAKE2B b7100525d5695506855db569a3c59e257a641b4f5f2675bc4acd99dcb3339de57daf9451bd48529b499a9744f0d1498eb32c4084d3fa0e250db127c230b0180b SHA512 252fc36c600296a6f994e8494635dc8b3cc86ab76d758d1a08d25f09e6b81e5327419b12066f4da6a7145c66e32bd733d46d2c236bc2bd03e7395d5628ac870f
+DIST rust-std-1.99.0-aarch64-unknown-none-softfloat.tar.xz 16186436 BLAKE2B 6b92182922be91535791f6e5d20794572ea37b3f9e516c2bba0cba52d7256ae7323465c4d9d750ef77bb8565184fa5ee7f855432041a60e2cbdefba29380fd6f SHA512 4df060ba543768e28785af80e2de947e6ca2ec28039b0d06af0e2b687db691a18cfb34cd527691e5ef7f57eaec8957acb81972f244c44462f6a9ee12181035e9
+DIST rust-std-1.99.0-aarch64-unknown-none-softfloat.tar.xz.asc 801 BLAKE2B c1f77a25ae4937360dca4e10304052c52773333b0b0623acfde16dba702691ea7df5d7b25779b579d4ec6c02426c58ac4f734c98947464fc633dab0dec8b6a40 SHA512 7aaf69c1bbc2004756dfa1fa1ff45f19c42cb8a47bd65dd99c3c99a9be4c187fa93fe850c0859a0e6e1c35204acd46c21aa542f32c0a86453ed7b3e2cbaf6cd6
+DIST rust-std-1.99.0-aarch64-unknown-none.tar.xz 16316840 BLAKE2B a7ab0028b74d60f498b88034cb4ef60f38caac94010a770082385653165f6fd5122394ccdabb2fdc16941945ccf2428f8730d2d12dc69701bd2ff11ebb721754 SHA512 0e1cbc6a9ab7c64d67d3387231f96ad276a92b70d4fc5f64aae8e7cab409abe51b66844996d0891b302c4ddd632262aac189e4db69fcca28541f6831745d9ab5
+DIST rust-std-1.99.0-aarch64-unknown-none.tar.xz.asc 801 BLAKE2B 8b212dfd2cf1184fbeae8526ce0f0a827abe3ffc7d7118530933acca58a9754a7f6d920e7c3f156454797508775e28dc910be4b4f202d97618ed381e253eaf93 SHA512 a9e7136f6d155855df93949509c2e52c54836a8ad6e6c1a469c0af0979144636941ed347b5ae1c89fb772bee5b978a136334fa6474a257bc035f865a1a6b95c6
+DIST rustc-dev-1.97.1-aarch64-unknown-linux-gnu.tar.xz 108896984 BLAKE2B 81dc05617daba6ed2fbeb6bc03364d3a5515eb84e7ca3e9e48c14c5540eb1c498628a64a40a1fa4c668b71d005376847367cbb08783e3ff66beb2092acb57daf SHA512 e5dec2e93e98c1ae38482b9632e2590aba852fa85103e477032c03ac78963e2425647aeb938b96563257ccec259c51ce98390210d4487d68fda70f3324844b01
+DIST rustc-dev-1.97.1-aarch64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 369f52a1914d794906c5bedba83fa6215eb43f5ccd435ce68be842393267246a4479b87a71872934576d93588fb3988b09825c259335ce7a97ac8953a6ee8156 SHA512 bdc71b1d7efb54763fa8fe43580496367d02b3fc62663b19befd04e73722bb28e10dffaae20a401214818a1b71e692e3d427ea77ec16456ab3897903ab443b26
+DIST rustc-dev-1.97.1-aarch64-unknown-linux-musl.tar.xz 139572984 BLAKE2B eebef2c2949151627d6c03bef743cafe6f98e012924f1e8097223e7f0ad2ac4ee651d4c1e94c7b0f5005c39b599040e2f3fd1599edf755db6fd4acc8d57fd8e8 SHA512 64d4d45a64fa26224f841bd1cdd97622655cbfb2905ee5d223d899cb7b4477a7b5c8e3cc95e5749a5bc501347c2f245c8c2e8d0113ed92947310044a69d88ed7
+DIST rustc-dev-1.97.1-aarch64-unknown-linux-musl.tar.xz.asc 801 BLAKE2B 3b194f33b96920f2cd916e6bc58347d25518b427b4636719a1ffa4f43041a3b9f28fd366da640a6d35b9cf819b876a9d1b4b0d6a40928eb74987038a67fda4e5 SHA512 9db270b0bb593b285267658b155aa5a5a805b86c4f6835eccc163339bb384a3d9e91ec466d89ffb2416d687b18020ca907fe7f47ab38b3af8f54da1be742c3ea
+DIST rustc-dev-1.97.1-arm-unknown-linux-gnueabi.tar.xz 137855280 BLAKE2B fdfc9aeb8e7a391a63405caf373bc94336cfd838bd9286cd016f6cea40d59f69d039d6d902754f86902f095e7e9e2da827b6aa95eb116814798ba68cf4704aaf SHA512 b983c0e53ea500d9cc78ae0934401d035fb91a7ed7d342e6c69e94cb792f5fa57e5cedd5e799ed98b65a04c5b8139f1e0364be1c09ef312fc557343ff9fd69be
+DIST rustc-dev-1.97.1-arm-unknown-linux-gnueabi.tar.xz.asc 801 BLAKE2B 30087ebb1ef10d5de89ba08e5ea57263247949f38e52c844c92fcc86c69fd068f47efdec1f95e3e5aacbe732d8c0cfbd9a85bfdd467e10780794128b96c84df0 SHA512 fc386cde94ee3ccfdefaeccf1043902cb22ed9850704736cb1a5d74d8db4e3138b063e85e6a9a6364394e5c48130b0338d2ea974b2551161bc4dbb31fa45452f
+DIST rustc-dev-1.97.1-arm-unknown-linux-gnueabihf.tar.xz 138087532 BLAKE2B 47bee880015dda18fb7b53bedc6615f5ba5e5bc112cc9dbedb71371adec2563542056ba3940cb266242cb1b9ec7fd7b8dd0cb25d845241b59d30fca1e6cca390 SHA512 73ce3b31d953363dd3cc821a7b7c02c5805451b4b92eac5ebbe7f8ed3db3b93eb12b8b8988d4364c773a682645dd959e9aabd0db47adecf7019980dd91873788
+DIST rustc-dev-1.97.1-arm-unknown-linux-gnueabihf.tar.xz.asc 801 BLAKE2B 2510a76640e4f17ead51e2213db863836d57da153efd4e81c0e7820e15fac310edafa5b62c067e1d4bc936bd68223966e0a3899668a15ef5fecc2e63b0512435 SHA512 0f3b769271c84e2f1b7d76e53d85b76b0ef1a02eb896da27abc02b5f230b7aa9569a0d175f09e735ae571afbe45a00d3ec758ea7102c375c43f6114f14c0e581
+DIST rustc-dev-1.97.1-armv7-unknown-linux-gnueabihf.tar.xz 138998540 BLAKE2B 3e2a1d3dd56f229e4c3c72d52ba35e831904216db8a14a2f5a63425d3123f57272120ef34db97a01a81cd018fb2852f6b6b746567194a347816063806dcf66ca SHA512 adc6d3219df887037b2c17ea4ffae03ce0bde7de3650d67149e27c1b5c7fd3522716ae01b2a816f0864e0b7aa5f3e6d9bf29f26b6eabf52e27208945d777bf03
+DIST rustc-dev-1.97.1-armv7-unknown-linux-gnueabihf.tar.xz.asc 801 BLAKE2B 8087af592b58e201614dbf45d92411ec657b0ce16c218851b685474fb20c1fad579fc1396215c1e323f8865e9f4d865ad40c4d3f87d1708e2d71cfc0d25ba993 SHA512 a53121508c1d0bd75447d6ae117ce6046101f0867e8a80e2e1a83c75ab367db5ef6eeda560dbd4b79b12c3c0270cdf8fbcd8c7ea5bbae98134fac1d1591b8b97
+DIST rustc-dev-1.97.1-i686-unknown-linux-gnu.tar.xz 140779216 BLAKE2B f083e2f456ecb37e654d1da3e10d9dd1308905c5c081aeac48119f2fa9df91663a6273afee3a1d6393de4505cf7aadf2fcea85270597bffb5fed151106a8ec4a SHA512 8bb7ee2310fb8a3df3b593679993a769e59b0b4dd5c7f7b62718f58ff781cffe62e58317cd912ac48345b08a0929b6813199a04bbc9dd84bb83c923e88c2077e
+DIST rustc-dev-1.97.1-i686-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B fb7a302348e37818eeb9b4f591a28589ed5e47e3d047551f0cf4775a8920caaf5c1740a02a0afb334c2a06b293f9f49c53f48085a85f52cfc2411aa422046098 SHA512 c8aef7c59818374012b513aa3d21726676977e746dc2d2eb4ffe8ab7921c7fb908e4577b6922fa096c0e557a923e403c60d7e7387adce0de0da1008ddd122075
+DIST rustc-dev-1.97.1-loongarch64-unknown-linux-gnu.tar.xz 144266852 BLAKE2B 8529a1a9d734ad872c4f98696a28e6fa99aad132a7a67dacb384a9672f45ef9d94a60736d85758e871c3cd73fb043c26170bdfe6e0bbb1cd1a95b3d049d2f0f3 SHA512 665de0e61ac058830bf48f705ed96b0732454cb330eec6511a5452b150142dd07a58d921ccde81b9ad2e80a8094597e3317c07bbe0d0f812919f4bbe93065f3b
+DIST rustc-dev-1.97.1-loongarch64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B df465dde4f4c80eb2810b142ab97eab3bdbe1641bfcf71a95398f123f9ec0e040ffd8636efdf8cfe5dccd53f1b90afa2be87c0bdbe75380643014e2a5467cb56 SHA512 40e743ad72c90ac0ec8ce3781d60e28e914f1e8135970400ab4609a3a303bcb47a391254e369597cf6c6926d1e996f7e03c36b5a4cce6bf6aacb90d51edded97
+DIST rustc-dev-1.97.1-powerpc-unknown-linux-gnu.tar.xz 140687108 BLAKE2B 74edc55ea2678700c6be0cee1d5bfe5cf7a51d98e8ca8a1a46816af0b0edafcc23f1649f5058147cffae387edf40d9f7be093c5099f3a2b336540e2956f3b32c SHA512 b1fa9a350f238bf7e5618c369ff6518729dfb886e15803ac12a274efaade37f46b2b0ad94282860d341b04a2ee1383a2b422a37aeeac48421528736d7dfb2c4b
+DIST rustc-dev-1.97.1-powerpc-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B f89ca51776f3b693f491e6a0d88b1304841b8db3686c642894dd9473507eede1c79d0975e8d848c2d5f500e0096538297d80bf1bf0a05658e0bbd771c1300e7c SHA512 5db69412140fc4508710808550177d33f9648b37e1826721013ce9113de4766bfedcccbe64431e194e4312bd2b5370309c450903f89a4820b3294d3286e50f08
+DIST rustc-dev-1.97.1-powerpc64-unknown-linux-gnu.tar.xz 141696524 BLAKE2B e06c758f535970ff9da83fd268d399e0053108626ee995e57f5bd5c4261194c9728f4dd4832da42128ab29c2749ffb06511447e0213912d6af487ccbdefc123c SHA512 6d9ab8674870ee691c109a195cb1b5093527832af26bff5303ccf998453d5906f44d819fabd5e0c890f1880d5523999caf0d77c7de8c1680965cb744739203aa
+DIST rustc-dev-1.97.1-powerpc64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 02011ddf02f89fd34015f53edf63255ca725c2752d70b67432e510f6724f588babef14b80a5099938aa2e4456009c5aaeff78a5d81968d9a6778c98bd0624079 SHA512 c646263cb21c35337d43d0771dc11bc784429920dca8b0379f09c43111895ee383affcf5a5768f2648d766599c7c78c7b522f75cc50a36570015a581ae6f5627
+DIST rustc-dev-1.97.1-powerpc64le-unknown-linux-gnu.tar.xz 145006404 BLAKE2B 320f327e5214348c01e784b0968cf77259de0d0f5e1e937dfb2561b084363d5f48edbb35acb43271a03e7d84993ecb0912bf647f7b77dc37e917c99798079350 SHA512 49fd10d8b7f0cd4ceaff1ffa17aa67feb1b24536e2dc3d8bfcf061c02b3ef6b096973826517fa916e650a5556f03d251045357e579e3da6aa9f818f6b3d6a1fa
+DIST rustc-dev-1.97.1-powerpc64le-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B cfd7850008d92dc7efd9857331bfdc13ad7eeabdcc24d9309fc1f7234af6b5613aba2802ab0da5c21a2ff36e05f66841908a7b2e42d55ebeaee2a5348a51dc35 SHA512 47d109c7f39d4647d93b7c637d3fa4270a96c38f593f2d1990e8708f7941542dab14187b1049d96bdae81fce47f12fe559583b2a306bb938be2864e66838e741
+DIST rustc-dev-1.97.1-riscv64gc-unknown-linux-gnu.tar.xz 144914532 BLAKE2B 52f5d62a7360e5776690f019200a45aad22461380e5f095ac39a24ce87d6135739a692ed984dbf7089b773919bef0f0d5280a79d15170ee06385a0a6ee7af3f6 SHA512 9943ce4e544d8d02036e4ba069c7d3f525d02726653ec6a11240e5fecc71f67ea08db28bfb1072b0ca19a7baa852e6eb3d096fa72b34af7f62369fdb4ee45a87
+DIST rustc-dev-1.97.1-riscv64gc-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 394cd44da8ac15e7a65efd28b2ca20898dd27126f30737b2bf9fac565408c46b91acd035691c59205516bd3465431242bf7841cebc2719beff83762770db2c31 SHA512 bee9cd889a76d0354312d49d3ac60aa49142efa0566df57705b2e84898edad81806fd6e384ac98001695009054a696cffda313875e7febc5525b605068a4502b
+DIST rustc-dev-1.97.1-s390x-unknown-linux-gnu.tar.xz 138996996 BLAKE2B f734490092c59221839fcbaf58b8445499889e702504ab981c3e45579522cfc7ca6d6e7e309bcb20099269a8791df5be35bd1c1f407f328feb338d1f1e28e80b SHA512 9794ccf2588d6da72e7682d2a2da5daf0d1d64a49a969afcddf70deb575fd41b470c1bd6e39f89b171ef0a147506bc76ffe8de8227001c7f39c49d71a74c8096
+DIST rustc-dev-1.97.1-s390x-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B b8de3de4e6b05bfa0e0ae3f217874137fa3a40917fad3bfb36acac793a9ae968fec9f2827e596fffe3a669093dc34c61a9b4a33a4112d5937b7106e55f53216f SHA512 081c93bf64d7bf981b05fb86d48c37c84f83d91d991cdd680f2f4156101e1d1bcb33f1a4d5946beda92b62129bf25f4bdc8245c24cf4e86d7a037f4649887b1a
+DIST rustc-dev-1.97.1-x86_64-unknown-linux-gnu.tar.xz 122286540 BLAKE2B 9c5894fa8b18f529f8ee3ec85b461d5ea0955c007c13b2947dbe4ce99ac4dc5b7646bfcd82e93d1285b8bd3ed6fcb8ba77a1c0cb54b0339f0ece94361fefd0ad SHA512 677c72e4017b24a85e65154d0317806f76876a126eb81cd58c675ab623978856fa2bb1f45ca88f953e62b663de7762784f462dff6cbe14b54d3d9f74e1555016
+DIST rustc-dev-1.97.1-x86_64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 661ed40ca995186caeb8046a871df2d414683ef7dcc3517d5f0b4618a3a888d1ee92e79f800035a87b043422303a4ab41b02026727646dcd16ba51e684c58e1d SHA512 58185415f09d9110365209c005c8f9776f331e7c3616cd18466a5ebf21bb5749b70363fe429cd9d83e680a318a9bbb4063ccb4845768244f6eab3b7bb0da5cd8
+DIST rustc-dev-1.97.1-x86_64-unknown-linux-musl.tar.xz 143334332 BLAKE2B fbb3e7f23231836c7d5bae7929569f38e9c359540bd2ac39a7f79d0a31a4f8f4e3952fcfc2a15ea72bbf42c95e27eaaa6fd57404a1e3b0154bae728a9549d52f SHA512 0a67f54fc3ff5977366fd1f2693952800c39b2e44212c84c29e9da9c5a9723d87a66b516cf907a89e2696887bf0151410bfeb11760bbf463ed187053e7b6b053
+DIST rustc-dev-1.97.1-x86_64-unknown-linux-musl.tar.xz.asc 801 BLAKE2B 0fc4b31d706a2b35298293ef968a406f36845da4a12a0d6e1c001baf7dc7dc47cb3bacd91f0c08f1ac9a31502c4f2fe24f3817efb331e5074ce3cf622f389214 SHA512 10df2952a68b330eba0085ea2d7352faf78d56606d535f9e2cd900be5a8dfbcabcc1030dc8d80f360129d2e4b06155ce931b433f36bc2265f06660d3cf81163a
+DIST rustc-dev-1.98.1-aarch64-unknown-linux-gnu.tar.xz 110439460 BLAKE2B a98410a0934549abe8a7bb1f3963fb474434cc540222d6bfba66921d98678b5d6ea16af39b5ea2208b5c4cd87ccfcbcaa9e3e1cd66e586fb710af48641409e12 SHA512 90f49c16d7458891d74c769870a8d7ff9b17d3b114c1e696678a3e41fc42a89800853278743f009cc6c17316fcf30d88144af7f8eb829d063be750b6d7fd14ef
+DIST rustc-dev-1.98.1-aarch64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B d8dfc3686c2bbfb3fc86c1725fa5a644787597f6e8554d8780be154749967a9a95ec79552f371845bf4733a4f5dea60b201a43f934ae464acf9ded26d907da26 SHA512 2124d31f32ce49964529e02fa0e40afd5d0189b25000a021450862bfe69c22587c7290d16505f27ecd1c7e1dd4b964f88890aabb1654a8fa251f7e84e30e0dd6
+DIST rustc-dev-1.98.1-aarch64-unknown-linux-musl.tar.xz 150124492 BLAKE2B 9123e8fdc2b55a50bc116ec241902fc622f36e59b41757fc1f1b2735abca305ef87370d31f2eefe165a32089fe849d51449e7a39c5ae8d6c1e8c1fa2428d270d SHA512 77fa691e21f629913c09ab3ee8b97d28cd76c7bb92dc68447431d8ba0444de8eb3bbc4555bd2e5ceb5723c6048bddfb3503cd30153a4e209afd4f9702bab0ae4
+DIST rustc-dev-1.98.1-aarch64-unknown-linux-musl.tar.xz.asc 801 BLAKE2B 5c8925faad1345fcdacebeb6828d779628d5a9c4f45aca1f243b6c9d920d78f858a444bdd2dfb7250a16583c0085134fe8319a0a2af6f503fc5eb02e37851fe1 SHA512 c47b88bf92b7b365c5508e533fab80212f375d0da643e5dd86182229d172bfc16802a2e72c9e2c6f1163b6b51cca5488f2db19623c52d7f66e168209db7ef5af
+DIST rustc-dev-1.98.1-arm-unknown-linux-gnueabi.tar.xz 148222844 BLAKE2B ab6a5ea9d0ee961008cfa6f13b52987bc28eecd650bdc6d3444ec40ba832dd55dce11144448cfdc9ad4f109e4766781ec5566e15310c55a38f1abed654e21281 SHA512 a11eadc3f7b9766c4c693d76feca24fa9e29d790e069f8a5241b33e80b0a6bc17616c1058f5abce4e0d50fc4b4f39310da0f73a020bd2753089e14f234d42371
+DIST rustc-dev-1.98.1-arm-unknown-linux-gnueabi.tar.xz.asc 801 BLAKE2B 0a68188257da15392a1a5c4471b62f8295be59a8e032d41389cdff324ef41e4a4b577d2a3e08f2e74bc5ea771b30c92c9ff65ac1b0dcb7190092be452646bce1 SHA512 90e753e555f9bcdeff02407f443cd5da5d6b9571e0cda0e63d4363b3d3fc0c5159a463358e5d9d638ed9c8e6085105c6e643a6a7600d6c7a73fbd7fc946cf660
+DIST rustc-dev-1.98.1-arm-unknown-linux-gnueabihf.tar.xz 147088572 BLAKE2B 73449c22fde28ec8df05458cdf29b9408ace61a88a0aecab9720af3d6b956d7c2e50380f384b12ff636edf66ff852f133ff1a16135684c9a26c2dc15207a1675 SHA512 ef2934eb227c68dfcad09d9d3b426651b857da38088b140b720127b1086b5089c86027b6f1df93d82984606bbaaa58cf80805fcfaddbd9de997435014664d029
+DIST rustc-dev-1.98.1-arm-unknown-linux-gnueabihf.tar.xz.asc 801 BLAKE2B 5118db0db22b3319949e837cff60e2ac1bff449b89c3ee5e67055e2fbd9e321599978bebad99e7e6c507b5d1ce2fc2a58c134654d653f5f6ce86b572ab2cc65c SHA512 c27187ca31ca03903104d684d09b6923eba0e0c4ed597189a419e3f1152ca18999069eb8c0fff494d47914938cbdf78e55669e44f365c156974edaf944b4a132
+DIST rustc-dev-1.98.1-armv7-unknown-linux-gnueabihf.tar.xz 148922452 BLAKE2B a7c3634e0c85215bdcaff9f74e19deb96287203d23cef2df641b8f5c9e1e06b392e67aeb52cf7ff45312755284a660091004d2b9b32753d2372d042ef08bd2e1 SHA512 fa6e8dd237f8f14ebd683bf3af650c0bba6b289ec068841e9a3651df7265a2566c3c440b43873e700f76d5ad8cf9e98371be92b55650e2f90625fdcf488c5317
+DIST rustc-dev-1.98.1-armv7-unknown-linux-gnueabihf.tar.xz.asc 801 BLAKE2B e63b706b6207c4fc748428517db2f977376dcc11b5d9b0019127fee06dfb3cf80e69ac53f6d7be0d5c314809141f59986229bd40d4964b97a1dd6ca36a815bbb SHA512 f00fdc46e407a9ba6b4935c6f4e92818c01937a8f8116d1afc7ce955f54bd5a2b63b4b815340183a1b916d66ce400f6947a28f0d22f67d8ce46e6071df980c82
+DIST rustc-dev-1.98.1-i686-unknown-linux-gnu.tar.xz 142351096 BLAKE2B 53a6c5af4da94fcbef7fbe9bf6cd2007b7658ef07342d2604d973e3a5b936b7e7fcaa6c1459bcac266e95a1ebca905ffccfdac3f93ef832956ab1812eb377837 SHA512 8abc4e13d318b6a814d3149cd7751da5db91a5bbdf0dd493f4b8936db605b0d8b069d03c66842bd69dbb1f44c9dc3e03ccf7fa4e9279ef6ffed302642bec6402
+DIST rustc-dev-1.98.1-i686-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B a586a1acf85ff9d40587509706daef7311ff152634c50e21181bd56bf6eb4d160b49e5d3d53383f5178c46e7ba60c66bf40fc14e1136ff13243f8adf0f776408 SHA512 a29051c2b14f9142c4009a941b763b4546c513a7913085445b160ba745eabd04df72208bf1deee89354a73847144081aefd437cf2e7c9df5372785b666262a96
+DIST rustc-dev-1.98.1-loongarch64-unknown-linux-gnu.tar.xz 150777060 BLAKE2B 25c672e29043ad2dc700e983678409d7c19349ed28c05c4a7bfe5f2d2f203e8700b855cee4dbfcf766d1d0541cce4e907ddb763029fb5fc2d886c968e467baeb SHA512 b901cc9abab7018af6fd3e0f944e7b12ceb95a90f8f92ba071af46cb78b0a0278b71f2b6ac87355b73a09d8f38d051b8b7f8d8036fe7e219c6ef81d23ef4d36a
+DIST rustc-dev-1.98.1-loongarch64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B f01ccf112843d816e5b4ae42e18a01262c8bcc540bddb425c17a32444b64dc7fcc94030f6403922ef5087ffaaa0538c8f817857f62a4d5b07e826c515a06ef39 SHA512 10a07044a7ffadb1502c61d4e422368b1947f39901670d49cef8d4bdd55fa651e1b0a7aabdb0183addc65b52f416d41f7fd2d3406b6a03e9edde6626e131aa3e
+DIST rustc-dev-1.98.1-powerpc-unknown-linux-gnu.tar.xz 151918564 BLAKE2B b7afce0dad59e4f62832188c9305dafe1c1c1cd90f335e5dec428ebfc72d9224ff0324972a3e0ca2da0ab8e51ef4061f4d1a75fce14ff87bc878bbbe9cdac9c5 SHA512 a6eff58a6bbf3cce46452eb39e4d81452f3829e61a88f28358595227de3f167f1e7bec645c4c114579b99c28214d410698c45b8fde831664b6787e6c9477f830
+DIST rustc-dev-1.98.1-powerpc-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 2a8d8f33835a0db00467f5559d844eb903b1456adb9315d024d56225fc1e642e0b0df4bbbd6f0775a486e442f4a0cf1cc0aa5982ec7b8dd5e140e95f5dcc57ad SHA512 93d1bb108c351ab1266388e400c758673ad5684fbf7344944f2b0740185a5f126a1c5f7a6c49abe8161ce39de2baffa6d82fb263eeb1c1062ca184f36d2856e1
+DIST rustc-dev-1.98.1-powerpc64-unknown-linux-gnu.tar.xz 152076204 BLAKE2B 43ae7ef76bf9689fd0f6a1b10b404cad0363ddf47a65b73599bc65ce873d0a3f29692e8ba255d9a577f18b5cb5413a40de5f19f44065ee7e0b07711bb4595cf7 SHA512 170d79858010be5d2e35c86be687588b861349669375bc06d5c1b774014afd08d46e21311813f1bce517b9ff6d33aedd65f37fb5cda764e6bec43b0c9bb1aa9c
+DIST rustc-dev-1.98.1-powerpc64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B f15c8b945e814db8e13f23d5d8b932af740c1cf49b6e54ab5092eeec8cfa1b975165a0488dfce1025d4c514448f183f4e648c8ff82034ca4607bd767085be6bc SHA512 56479b8f70968d6a3bdee587326e8488ed63e6d0d2d31aa5eddc202c35e4a373b788d03c3691bac5dc1c9557af88260ee60887814e018a24ecc7980bcb1955a1
+DIST rustc-dev-1.98.1-powerpc64le-unknown-linux-gnu.tar.xz 155799960 BLAKE2B c85ac931b10d7d3764b9da78c108737f1fad0483428e879b2b9684230ca055594e4bcd58127e8191f05cebfbc939049260bf71fdf6cf5b271ba46318d43ec01b SHA512 509c189721e0409135fb09fea79dbd0b39c9e2f41d73dd442b8a90e1d2f7de30378a5c4ea3293922ff3e0a81d750636c9421028b68ecbcba71c1a12079cd21df
+DIST rustc-dev-1.98.1-powerpc64le-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 7a9669d0f7b5738d970837e9290ea802471a640ad7ea65da49cff2920a6a6aebb1e8f9ac8e313e9571ef6375f70597bc82c005eeb2a76d6a1adc154d6abcaf4d SHA512 ffa1f8928602cdc2e1247b2b3dfce9011d608f9aab38dd58c8a4f0db9b723a8419d8442af3fea44b3d2d62dffe5e2f32d0b024081d3172ec9be2eff835141b39
+DIST rustc-dev-1.98.1-riscv64gc-unknown-linux-gnu.tar.xz 153745552 BLAKE2B 357805cbf47ee852ccbb8fb35235e88aa31e112bedad8b31ab4a5b1b2459836724eedd1f2cc9df67c373f70f2fdfc769d802a8dd1d55c662c3f6e54befaf9a9a SHA512 ff49b4b89bf3d130abd52677f58518591d2f0583143561a69c6ffe9da45b6114279ee00ee97fd4d1932b9ec89abc79ce84acc5c00c1b0f6944f425efb1c9e964
+DIST rustc-dev-1.98.1-riscv64gc-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B ef151c2c8346bb965c9b19c0c16e7071ef3e1023b13cda67111a3c3d00ca5a9c6cc2c6116d7c014c7cfd75f5e7201d846526c3e071f62bf96d0d9be49509adec SHA512 ca03010026c61e569bdaf10ee7cc0275a98ab1a8a48e4fbe11c24e303578e2de8c5a443af2c5710f19922f8d9461d4c046835bab5c4948c755d3de92478b375f
+DIST rustc-dev-1.98.1-s390x-unknown-linux-gnu.tar.xz 149037256 BLAKE2B 9d5b4a889123bfd3326b4e31f2524df0f60c9ffdb411ce3c4abd5be2543ab320822936adb8e5541667a875bc4e92d73dda3f701b340277336b276c96c0714e1d SHA512 3007e212615520dcd9bc9ef6e93df77ed22ae2789a2372a977feaa8ad8c596e3ba430bfde67976fd4f72c2619729f01c909dc045924aa88e519c6ea811ba8126
+DIST rustc-dev-1.98.1-s390x-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 4587952e5945d5b2ccdf05163e909da543be270e2c6b90e6276063115021ea4b4d08cf28774d47dee04584f619b0a91b775b31e805e9d30b5ca086760e3196a7 SHA512 8d1cb9e5dd311bc05c507b527a7e162fb8d4466a7d1cb2c642749e8c2ac4c0ffd68944a2e82992c7c1a9c5bd4c2ce2810cb616f8ac4fdd3f558d6193dd6caa90
+DIST rustc-dev-1.98.1-x86_64-unknown-linux-gnu.tar.xz 121162032 BLAKE2B a5e6bdae889a870d47bf6ea062bcbd319b1c3edbcdf5d55d24d423440928e3851f7e630ccd600ece63338a2fe5fb1af2c7cb414f5a1e070b3dd4e61f4b200e39 SHA512 511dee61cea4bba3e1d2f104d3fb7cd342160fa6336381a23c06ddbcfd0585cda3bab86b9ba8c378f4f89ca4bd3c4efe9e60dbca9ee5d439b9cf9d30a22ab903
+DIST rustc-dev-1.98.1-x86_64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 83d47409227b2730c284fa5e542350424be4be08586490eabac09ee605cea0a061ed85d2540140cf31421e099752d0ab04dc3a304d3831f5ba14150067b66359 SHA512 58eaa2d9dc91a7ffc3d9c232c655f5a7ba66414e67d7e1d66d7f7f9034c378a08d4c246215aa9b897f1c63568e2935970f4411ed8800936dfc4df48c2c6b104b
+DIST rustc-dev-1.98.1-x86_64-unknown-linux-musl.tar.xz 144556512 BLAKE2B b187aee2bfbb5c05d27fbc98b4dfdd18e89c7c2c06919e8b706eb794c2c1c44c52f05e6bc7f5336417f3352d2acabedb86f9a2e57430ccca73ef07e011ebd9d4 SHA512 fe06880d244cf3b91df8a2acd9d48b05a46ee33ca8c8c39c4617127a5e6fe6ef64a153be1a37f656b689b4662a4c785174878f481594e93664a11d25b05ae7de
+DIST rustc-dev-1.98.1-x86_64-unknown-linux-musl.tar.xz.asc 801 BLAKE2B 93399097b381169829c5a0e8f7bc6d70d353aae5a67f4fa70c2819121e67909f67c1db760f49932556ef0545236fbb7cfcd8d4ab471aaaa39f16c8dd6efbec3a SHA512 7d291435b67be1b9f26d3326a1371e68973bbdb483794a384c64035ff2dcb752cf8bb8ae4d2f9f4ab371f10e0aa0a34979b14a2d4297fe30bc8f735095073d31
+DIST rustc-dev-1.99.0-aarch64-unknown-linux-gnu.tar.xz 113791868 BLAKE2B 487145396bd57ed7e56662e654c9eead748c4306e37c2384e1607b0c5f2bbd05da35fde5a01f241e014a9fa1919e68a43f84725d727389337450f9e62d44f9d5 SHA512 1eea309436f4cb2a1130d3be3f384ce2c66e65004ded50820204a8aad550cd5c9f10d54c7558961b4bb13e4a45311127828091b04b004e140850af250adfffaf
+DIST rustc-dev-1.99.0-aarch64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 87cff5a33a23f8f3e498f2bed7a5f82ef38359d604f4296481daec777d58d999459305ec6b82589b5e5a0b2301859048d8bb4fa1e878d048a9ecb73baf1bbaa4 SHA512 d20c5d3f7251d52c63889c3cddbba00b799371b73698b0331efa99642743a5a00c946db79d3fd621fe21faf72c60320bea7e04c1f4e3d20b01ad57f7bbfcad48
+DIST rustc-dev-1.99.0-aarch64-unknown-linux-musl.tar.xz 153117924 BLAKE2B 3077f9b239a1956df76d6f058b31aa3ef25a26a8bed59312c296414d9089de178a6f5b4468255dd817bb469a077b88ddb750f7ab0f8664114cff36e422dff869 SHA512 6e2c01aa09179f843df00092909b12370c94662ba063e2971eefb556b6fe71fe64402a1b5192ca941eaa17643bcbd81d1e2caabd215d6c027eb5a09a9a469816
+DIST rustc-dev-1.99.0-aarch64-unknown-linux-musl.tar.xz.asc 801 BLAKE2B 762f748b45b2a48cb92b17146870b3297550cfce2ecb18b223686726df474fdfc5ff4903028ca8ecd51a41d9e6167cd0b221bdd2cc8c9e5ef0cde6bb67ba6378 SHA512 3cb4432305233c7fc0d305b1598506ce729a6728a3232fa427598e4760e7e4f9e677d42086afbb7fab2cdacb2f5fe80840a3c8d9d8e3f2cf96e1a39abb89b167
+DIST rustc-dev-1.99.0-arm-unknown-linux-gnueabi.tar.xz 150574464 BLAKE2B a29dea2022959ead606e57ed26c7196a23981ebf25ae572b75c18aa9b7b3f1e5cdfdb8c562d051e6eb566d6cf77d9c4273a5ad87428d168190bdb9738e87163c SHA512 9075151a179a134e2ad07c54d16959cf75ed4b19f9d8fcfbb7a615af5fcb35784a2b0b7706b5ff4957bf23b54247ee35868f7551365d8d8166431dc862857bf7
+DIST rustc-dev-1.99.0-arm-unknown-linux-gnueabi.tar.xz.asc 801 BLAKE2B 87263fd190f3e07388caae7f359149c31bcda45c41383d3deb37acb25fec8b9b11da37dc28bf7929947cd5bd3b6529f90aed62dacef4b7e7bf329bd69847642d SHA512 b606b3a620ab516093363089b37bafdf72529e69e20f27b98f5d43ce6b5e921681f0edb97805fc89c8322734da7571040b310cce53a18ba7edfd6e998dc599f0
+DIST rustc-dev-1.99.0-arm-unknown-linux-gnueabihf.tar.xz 151159484 BLAKE2B e0a6a828d85a04339bf89d76161267b2e78931a4b11cab48b3c6aeb6944c9abc603bd229e5924fa8c3b3710dfe60179acdcf6e6bb33feefdaa0d764ae3afe92f SHA512 574009ca9568000d2b69a841561f03da836c4ea632cc8294c07f8c6a45e6e225ce391bbb2cf716d863e5baee50a75fc45aaeeb22e1744e82e8cb073944a2c76d
+DIST rustc-dev-1.99.0-arm-unknown-linux-gnueabihf.tar.xz.asc 801 BLAKE2B a957178c41dbad82fc68b3211aeb4993c5efdd17e572dceae4a4f746e7568e28c267f38688d9abfb12ff454ea01630cb0b47428251658b6f2fd3f0d27ad848fa SHA512 395d2eed850e591241c7909ad6244d0de502570323c52e44d0c8e22c12d9f2f1ac3413dbaca41a7f75b675ad3caf4d0f2ca4f56f6c1bba8130e1e3d6cea29512
+DIST rustc-dev-1.99.0-armv7-unknown-linux-gnueabihf.tar.xz 151674292 BLAKE2B 689c84da3b47b2726155e48b4db60289b10e85ac4cb4e0f30152c5f271d9347af2171a42d9a05d5571a5844d5de26a46c5281f4a63366fa7fc2c0ac6936af989 SHA512 0754c05ad3c725a69bc6798f830b82d0117e1fb8c06d2b6c05a8e288c30529c85a14128d8a13f4b56f20cb860f314e586fa8d95e3151108ee24bdfcfa80878b2
+DIST rustc-dev-1.99.0-armv7-unknown-linux-gnueabihf.tar.xz.asc 801 BLAKE2B b8ef6f6d4703041856bd26b6e9d245382dc55621ca7f011e7f5d258f0a8c7a34d7ebc3b78ce745dc7f2d6c975712db6f088925f338f52c67641abfaa4f3cb1d1 SHA512 9214a2ed945932dd81d03fb4fa7750163f16e8ec40c0918d7af9a05a2fc124d2f1b02c6d353b3d835eefbf3465c67fb2432b985c3d93d9ca60eb01b8e4356d92
+DIST rustc-dev-1.99.0-i686-unknown-linux-gnu.tar.xz 146849712 BLAKE2B a79e1df1a8a711ab382b3b99580b5af592369a13a4d1f2cce54df323b7ca32f9473f14abf0eb9b678c5f71d8bc6daef8fc15b13f79d5ee1549e0f85b0c7eaaa9 SHA512 7300764197137134b62e29e370f2914cee06e8a2eaf353f7cf3000c016f959375f81a1b8593d8bbad30d3707e5162a3c0645ce7e203f08f86a482d76ff4f9522
+DIST rustc-dev-1.99.0-i686-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 0800e40b597776825da823d8ef6cd8c2c46baaca27f1bcc3a20c2b75cb2bfb57afc80ba5508bb7ec601b577425177d5f2deca9c0cecfc10420449b10d059dd7b SHA512 7c921c31a61e4bdb010c55b98f4c4b2349e799ede5b7439ad3f7056b4495f79a96a603f3201a928275c1a8d419caccbb75025659baa8bdc55d20430b4fc1ac26
+DIST rustc-dev-1.99.0-loongarch64-unknown-linux-gnu.tar.xz 153819664 BLAKE2B fc6218b7cfef7fda6d8d80c30c332afc914f23ef7fa983bd97aaa011504bb1fb5b846735760b74b69e04ba332987b001391e53bf770713a47aeab914c7e79c1e SHA512 9c31dd7e5f8f62a744fcf56b9720be3f3130777f5b6c0688ebf4ee234f3362bf7f9d75560e7b41bc4a6c2f2d0f75cdc0c2492c19e426429a2ec797a44be51b9a
+DIST rustc-dev-1.99.0-loongarch64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 38e142c001f4149f6822e1d4b1ed981693eb30641d256bd4d9cba6792c5923dd07006fec7a4ba8ab06f0c9ec3f1a0d32f493562a4b0184e93d24df3ac2bcf822 SHA512 c61e01857e5ed68b2dd067d473745bef9f03c7a4d6bedb637ab9abd1d0dd560b93814c5ef1328f2cfdd99c6271d84c90d69410fbd5a726d6b087325a246fdea5
+DIST rustc-dev-1.99.0-powerpc-unknown-linux-gnu.tar.xz 152975220 BLAKE2B 2fa2248493cb9e97da792daa3347dffbc24432e13d0c225e655dbc97e8637c77677631b4a263df39e78f4ec56c9f7efb75e9f51815e68dfcbee6eceeb2bcfbc2 SHA512 6c4478723d667c45490c97653d64374b9604be8a953111fb846ac84353289206273d1cff043213bfbf37fef50546bcaf61b49b30af2bb99a2ba16a80e5dfa058
+DIST rustc-dev-1.99.0-powerpc-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B ad9386cd363f101a22f73611dc59c5065256ce0170ef7fdfdb735c66db3953dc41aef58e872f4050877df346ee9e360661cf736748bce196df28f744b25f4732 SHA512 ec4d3f997ec3e3d5061054e9ab30a6942685cc08ddebc33fd26d887fdf7eafee27c6d9e646bac923481b1aaecaeb24393a4d7365b710ba215bc70717774d1b0a
+DIST rustc-dev-1.99.0-powerpc64-unknown-linux-gnu.tar.xz 155180560 BLAKE2B b5655db1efc6391d3eb05521babc51d5e87b6fc741723afaf851f6eca91583cb19595daff3edcacb7ccc341f647c20987bac649eff0d5351b4037c9114b8df75 SHA512 2f40290a22c76c8f34aa67cfa5924e6af7ae157df30f304f6bf93bd0fc7b1755caa07aeaf87a25b9b6d32af252218e7216529d3ea4d149081a49fd72e6f9d6d3
+DIST rustc-dev-1.99.0-powerpc64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B ec936c5464d84f89737433f68d4ddd2ae74f982051f8a9d06b870dd28923abea460f01d6726d756b254d4abf5d273aafc1764da28ed7c0bb8f73203406509288 SHA512 1308e368de11c500d899c1db1132020668de980f757def1301a2c81f6edcffec6af1aeb6851e78596fbf9c07b9e22c138f57da673aeeecbff7753ff6bf9d62a8
+DIST rustc-dev-1.99.0-powerpc64le-unknown-linux-gnu.tar.xz 158167704 BLAKE2B 193fc8003670561606a220d3db6492c0af8a77723bfe273c3656e4afa4a59821038d8a9c1f4cd29aee6977b33ae67779ee12bff153f5c882df8944c62362cd49 SHA512 a6684d4bdeb1955b562fbe34049b0fc081ecdc34dc5ebe637b41b9335a3dd7398dcc44580e8928bd386bd87add5e30101196b3321ae36ad9ca2993fefa3bb4ad
+DIST rustc-dev-1.99.0-powerpc64le-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B cfd8c13721f69dc7e7c9855a3f69e312be0e660638e2e4817ffb4a628be1f00a80faee640807b1e0a2adc4362f82238dd6b6a06c126475c759c9671ff22807c5 SHA512 cc1c11629c8d84d8bb1dd2767142e991937aac9eba50f732bd7a69534e78d672d743db7699724d6bcaf52920faf733ea5424c23258b0896726d02bfc3802c400
+DIST rustc-dev-1.99.0-riscv64gc-unknown-linux-gnu.tar.xz 156781012 BLAKE2B 35ff92b8bbdd1ea00cc6109f84b79609eb25c8b69e169a4495f078fed137648a75cfa1f25a278f1c35e8d086a9df9547c38baaa30f4c1cb001ac2e091f15fc7f SHA512 a618f73c92d822d72e019c84a5cbdb0fb8706307d66ece8c6127436a01685252807a8ef909cdf731fbe7532763c78273913a8063faf183ee5ba4785b35ae2d5b
+DIST rustc-dev-1.99.0-riscv64gc-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B b4b041afa26e25754fffd9be2b2d629f868e76df56c9386cc724de4b5389da8437b470937935c16520196c5d3dae001c71b4626f5e75ee6929d7f6f949e87c4b SHA512 79b5d1175515a1569d5e2e7d1b1db26f3cca02af6ab8cd8d96111d4f19eabbfa3eaba7a25c95938608dc60c534f633efa9f236eef5f589bb9d15602ec78a7964
+DIST rustc-dev-1.99.0-s390x-unknown-linux-gnu.tar.xz 152343580 BLAKE2B 12ab9cb590c5c7a943c478d83203df6319200c7c12321e02e55d313203ac01c577bbcbb9672384b94eea622b6559e8f6287255ac4e08e426e7c76f2d6f46bcf9 SHA512 c03dbeb1a5b0761ce96adaf36c81a2eef51fa722d0353da9bc4b3408e682710b47aed23a82ba581e4bf595b9b57700e7a84995842991b79ea6d712f94cafc9f8
+DIST rustc-dev-1.99.0-s390x-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 7ab55d295c57ec537bb5212f3c94eaecf3840b70af80931a378f41d15b07177b800f18b523b91a857618f70711bf068ec8f7c24381fb9c0f0e5bbb38a1d194da SHA512 09bd31e3aad70593945ac046c43059d18c0bd929d262f57e98515100caf6537add371e412b8a9d68c4f7ca9bf3ad441bfb8f1f3f4cbf76052e795cb9f19d89f2
+DIST rustc-dev-1.99.0-x86_64-unknown-linux-gnu.tar.xz 125483224 BLAKE2B 5343d62038300bfd834887a066df10060743b63c4ce4b377ddb7e8131867589a6a440b142454356daa0b448b4fb766deb01ef8ddf3d74befe4717879b1067125 SHA512 db7248442849ed0afa043778a501265decbeeb867df7dd638bbc0ab4683eb96babd9b15dd5c80f50957377c2b0dbbb9d5b9138c5b0afca82ce484248006dd6be
+DIST rustc-dev-1.99.0-x86_64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B e1bf6da76d7971588a0de78d0c0435afcd2fc3b92f227f307e35a61d6c54b1ebe70b07764b708dafd9305099b2bcf001e718497ac3a32b16bc57d028c44b467e SHA512 accce81be2a0231d8835b35ed6afcdc5d4b7a4ab03a6cd7496fe305148e5ed891dec55c34cc828d6017a19a2ad31fb8d27860becfefe887bb12b8c0710a6ee0b
+DIST rustc-dev-1.99.0-x86_64-unknown-linux-musl.tar.xz 147523232 BLAKE2B f4059dbf78bf1d7cb3c9c0943a51ba4c14984d2250bb9471567cd222685a9296fa315f33312b9292f2afb0e29d481e768aaad483449776bb9c21f05b55ddfafa SHA512 13ad1e498de94a153b3d4a2f3de65c62ff67ee98a8c8f748ec6f3cf061c8a4674ed958ce0f68eba485e99418d796ac57a1729d443d8eb206cea1d9d5630fab6b
+DIST rustc-dev-1.99.0-x86_64-unknown-linux-musl.tar.xz.asc 801 BLAKE2B 8632211bbc398f1cfa7fc28d1cfc881e3221aa46b5b8b732c65b48b67fe33405fd874c6806bc7d8bbb32060a7f2e9258dd7676951a130c6baf6795d769b9a7f2 SHA512 4b84aa97c37cb95d33a331f43f4e9300ecddae99306630cf78e939501aaa0668b9dee7bf44c4dd36041eec7befe8f0cc2bc2b0fcb3c16476eaa50f59e39eb36e
diff --git a/dev-lang/rust-bin/rust-bin-1.97.1.ebuild b/dev-lang/rust-bin/rust-bin-1.97.1.ebuild
index 8975b8061d7f..883a072316d9 100644
--- a/dev-lang/rust-bin/rust-bin-1.97.1.ebuild
+++ b/dev-lang/rust-bin/rust-bin-1.97.1.ebuild
@@ -24,6 +24,10 @@ else
SRC_URI="$(rust_all_arch_uris "rust-${PV}")
rust-src? ( ${RUST_TOOLCHAIN_BASEURL%/}/2026-07-16/rust-src-${PV}.tar.xz )
rustc-dev? ( $(rust_all_arch_uris "rustc-dev-${PV}") )
+ rust_sysroots_aarch64_unknown_none? (
+ $(rust_arch_uri aarch64-unknown-none "rust-std-${PV}")
+ $(rust_arch_uri aarch64-unknown-none-softfloat "rust-std-${PV}")
+ )
"
KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
fi
@@ -56,7 +60,11 @@ fi
LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
SLOT="${PV%%_*}" # Beta releases get to share the same SLOT as the eventual stable
-IUSE="big-endian +clippy cpu_flags_x86_sse2 doc prefix rust-analyzer rust-src rustc-dev +rustfmt"
+IUSE="
+ big-endian +clippy cpu_flags_x86_sse2
+ doc prefix rust-analyzer rust-src rustc-dev
+ rust_sysroots_aarch64_unknown_none +rustfmt
+"
# net-misc/curl is needed for our own bootstrapped rustc, since cross-compiling bundled curl is not supported
RDEPEND="
@@ -118,18 +126,42 @@ src_unpack() {
fi
if use rustc-dev; then
- local rustc_dev_url=$(grep "xz_url.*rustc-dev-nightly-${rust_target}" "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2)
- einfo "Fetching nightly rustc-dev for ${rust_target} ..."
- curl --progress-bar -L "${rustc_dev_url}" -O || die "Failed to fetch nightly rustc-dev"
-
+ local rustc_dev_url=$(
+ grep "xz_url.*rustc-dev-nightly-${rust_target}" \
+ "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2
+ )
+ einfo "Fetching nightly rustc-dev for ${rust_target} ..."
+ curl --progress-bar -L "${rustc_dev_url}" -O || \
+ die "Failed to fetch nightly rustc-dev"
+
+ if use verify-sig; then
+ curl --progress-bar -L "${rustc_dev_url}.asc" -O || \
+ die "Failed to fetch nightly rustc-dev signature"
+ verify-sig_verify_detached "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" \
+ "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz.asc"
+ fi
+ tar -xf "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" || \
+ die "Failed to unpack nightly rustc-dev"
+ fi
+ if use rust_sysroots_aarch64_unknown_none; then
+ for rust_std_target in aarch64-unknown-none aarch64-unknown-none-softfloat; do
+ local rust_std_url=$(
+ grep -m 1 "xz_url.*rust-std-nightly-${rust_std_target}\\.tar\\.xz\"" \
+ "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2
+ )
+ einfo "Using nightly Rust std for ${rust_std_target} from ${rust_std_url}"
+ curl --progress-bar -L "${rust_std_url}" -O || \
+ die "Failed to fetch nightly rust-std tarball for ${rust_std_target}"
if use verify-sig; then
- curl --progress-bar -L "${rustc_dev_url}.asc" -O || die "Failed to fetch nightly rustc-dev signature"
- verify-sig_verify_detached "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" \
- "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz.asc"
+ curl --progress-bar -L "${rust_std_url}.asc" -O || \
+ die "Failed to fetch nightly rust-std signature for ${rust_std_target}"
+ verify-sig_verify_detached "${WORKDIR}/rust-std-nightly-${rust_std_target}.tar.xz" \
+ "${WORKDIR}/rust-std-nightly-${rust_std_target}.tar.xz.asc"
fi
- tar -xf "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" || die "Failed to unpack nightly rustc-dev"
+ tar -xf "${WORKDIR}/rust-std-nightly-${rust_std_target}.tar.xz" || \
+ die "Failed to unpack nightly rust-std tarball for ${rust_std_target}"
+ done
fi
-
local v
for v in $(multilib_get_enabled_abi_pairs); do
rust_target="$(rust_abi $(get_abi_CHOST ${v##*.}))"
@@ -149,7 +181,8 @@ src_unpack() {
done
else
# sadly rust-src tarball does not have corresponding .asc file
- # so do partial verification
+ # so do partial verification for the remaining distfiles, including
+ # rustc-dev and the aarch64-unknown-none softfloat std tarballs.
if use verify-sig; then
for f in ${A}; do
if [[ -f ${DISTDIR}/${f}.asc ]]; then
@@ -324,6 +357,22 @@ multilib_src_install() {
"${ED}/opt/${P}/lib/rustlib" || die
fi
+ if use rust_sysroots_aarch64_unknown_none; then
+ local rust_std_dir rust_std_target
+ for rust_std_target in aarch64-unknown-none aarch64-unknown-none-softfloat; do
+ for rust_std_dir in \
+ "${WORKDIR}/rust-std-${PV}-${rust_std_target}" \
+ "${WORKDIR}/rust-std-nightly-${rust_std_target}"; do
+ if [[ -d "${rust_std_dir}/rust-std-${rust_std_target}/lib/rustlib/${rust_std_target}" ]]; then
+ cp -vr \
+ "${rust_std_dir}/rust-std-${rust_std_target}/lib/rustlib/${rust_std_target}" \
+ "${ED}/opt/${P}/lib/rustlib" || die
+ break
+ fi
+ done
+ done
+ fi
+
# BUG: installs x86_64 binary on other arches
rm -f "${ED}/opt/${P}/lib/rustlib/"*/bin/rust-llvm-dwp || die
}
diff --git a/dev-lang/rust-bin/rust-bin-1.98.1.ebuild b/dev-lang/rust-bin/rust-bin-1.98.1.ebuild
index 8cff25596eed..53d97a8250d8 100644
--- a/dev-lang/rust-bin/rust-bin-1.98.1.ebuild
+++ b/dev-lang/rust-bin/rust-bin-1.98.1.ebuild
@@ -24,6 +24,10 @@ else
SRC_URI="$(rust_all_arch_uris "rust-${PV}")
rust-src? ( ${RUST_TOOLCHAIN_BASEURL%/}/2026-09-03/rust-src-${PV}.tar.xz )
rustc-dev? ( $(rust_all_arch_uris "rustc-dev-${PV}") )
+ rust_sysroots_aarch64_unknown_none? (
+ $(rust_arch_uri aarch64-unknown-none "rust-std-${PV}")
+ $(rust_arch_uri aarch64-unknown-none-softfloat "rust-std-${PV}")
+ )
"
KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
fi
@@ -56,7 +60,11 @@ fi
LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
SLOT="${PV%%_*}" # Beta releases get to share the same SLOT as the eventual stable
-IUSE="big-endian +clippy cpu_flags_x86_sse2 doc prefix rust-analyzer rust-src rustc-dev +rustfmt"
+IUSE="
+ big-endian +clippy cpu_flags_x86_sse2
+ doc prefix rust-analyzer rust-src rustc-dev
+ rust_sysroots_aarch64_unknown_none +rustfmt
+"
# net-misc/curl is needed for our own bootstrapped rustc, since cross-compiling bundled curl is not supported
RDEPEND="
@@ -122,16 +130,41 @@ src_unpack() {
rust_target="$(rust_abi $(get_abi_CHOST ${v##*.}))"
if use rustc-dev; then
- local rustc_dev_url=$(grep "xz_url.*rustc-dev-nightly-${rust_target}" "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2)
+ local rustc_dev_url=$(
+ grep "xz_url.*rustc-dev-nightly-${rust_target}" \
+ "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2
+ )
einfo "Fetching nightly rustc-dev for ${rust_target} ..."
- curl --progress-bar -L "${rustc_dev_url}" -O || die "Failed to fetch nightly rustc-dev"
+ curl --progress-bar -L "${rustc_dev_url}" -O || \
+ die "Failed to fetch nightly rustc-dev"
if use verify-sig; then
- curl --progress-bar -L "${rustc_dev_url}.asc" -O || die "Failed to fetch nightly rustc-dev signature"
+ curl --progress-bar -L "${rustc_dev_url}.asc" -O || \
+ die "Failed to fetch nightly rustc-dev signature"
verify-sig_verify_detached "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" \
"${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz.asc"
fi
- tar -xf "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" || die "Failed to unpack nightly rustc-dev"
+ tar -xf "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" || \
+ die "Failed to unpack nightly rustc-dev"
+ fi
+ if use rust_sysroots_aarch64_unknown_none; then
+ for rust_std_target in aarch64-unknown-none aarch64-unknown-none-softfloat; do
+ local rust_std_url=$(
+ grep -m 1 "xz_url.*rust-std-nightly-${rust_std_target}\\.tar\\.xz\"" \
+ "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2
+ )
+ einfo "Using nightly Rust std for ${rust_std_target} from ${rust_std_url}"
+ curl --progress-bar -L "${rust_std_url}" -O || \
+ die "Failed to fetch nightly rust-std tarball for ${rust_std_target}"
+ if use verify-sig; then
+ curl --progress-bar -L "${rust_std_url}.asc" -O || \
+ die "Failed to fetch nightly rust-std signature for ${rust_std_target}"
+ verify-sig_verify_detached "${WORKDIR}/rust-std-nightly-${rust_std_target}.tar.xz" \
+ "${WORKDIR}/rust-std-nightly-${rust_std_target}.tar.xz.asc"
+ fi
+ tar -xf "${WORKDIR}/rust-std-nightly-${rust_std_target}.tar.xz" || \
+ die "Failed to unpack nightly rust-std tarball for ${rust_std_target}"
+ done
fi
rust_bin_url=$(grep "xz_url.*rust-nightly-${rust_target}" "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2)
einfo "Using nightly Rust from ${rust_bin_url} for ${rust_target}"
@@ -149,7 +182,8 @@ src_unpack() {
done
else
# sadly rust-src tarball does not have corresponding .asc file
- # so do partial verification
+ # so do partial verification for the remaining distfiles, including
+ # rustc-dev and the aarch64-unknown-none softfloat std tarballs.
if use verify-sig; then
for f in ${A}; do
if [[ -f ${DISTDIR}/${f}.asc ]]; then
@@ -324,6 +358,22 @@ multilib_src_install() {
"${ED}/opt/${P}/lib/rustlib" || die
fi
+ if use rust_sysroots_aarch64_unknown_none; then
+ local rust_std_dir rust_std_target
+ for rust_std_target in aarch64-unknown-none aarch64-unknown-none-softfloat; do
+ for rust_std_dir in \
+ "${WORKDIR}/rust-std-${PV}-${rust_std_target}" \
+ "${WORKDIR}/rust-std-nightly-${rust_std_target}"; do
+ if [[ -d "${rust_std_dir}/rust-std-${rust_std_target}/lib/rustlib/${rust_std_target}" ]]; then
+ cp -vr \
+ "${rust_std_dir}/rust-std-${rust_std_target}/lib/rustlib/${rust_std_target}" \
+ "${ED}/opt/${P}/lib/rustlib" || die
+ break
+ fi
+ done
+ done
+ fi
+
# BUG: installs x86_64 binary on other arches
rm -f "${ED}/opt/${P}/lib/rustlib/"*/bin/rust-llvm-dwp || die
}
diff --git a/dev-lang/rust-bin/rust-bin-1.99.0.ebuild b/dev-lang/rust-bin/rust-bin-1.99.0.ebuild
index a1d93b3ff52a..11f8d699e045 100644
--- a/dev-lang/rust-bin/rust-bin-1.99.0.ebuild
+++ b/dev-lang/rust-bin/rust-bin-1.99.0.ebuild
@@ -24,6 +24,10 @@ else
SRC_URI="$(rust_all_arch_uris "rust-${PV}")
rust-src? ( ${RUST_TOOLCHAIN_BASEURL%/}/2026-10-01/rust-src-${PV}.tar.xz )
rustc-dev? ( $(rust_all_arch_uris "rustc-dev-${PV}") )
+ rust_sysroots_aarch64_unknown_none? (
+ $(rust_arch_uri aarch64-unknown-none "rust-std-${PV}")
+ $(rust_arch_uri aarch64-unknown-none-softfloat "rust-std-${PV}")
+ )
"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
fi
@@ -56,7 +60,11 @@ fi
LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
SLOT="${PV%%_*}" # Beta releases get to share the same SLOT as the eventual stable
-IUSE="big-endian +clippy cpu_flags_x86_sse2 doc prefix rust-analyzer rust-src rustc-dev +rustfmt"
+IUSE="
+ big-endian +clippy cpu_flags_x86_sse2
+ doc prefix rust-analyzer rust-src rustc-dev
+ rust_sysroots_aarch64_unknown_none +rustfmt
+"
# net-misc/curl is needed for our own bootstrapped rustc, since cross-compiling bundled curl is not supported
RDEPEND="
@@ -122,16 +130,41 @@ src_unpack() {
rust_target="$(rust_abi $(get_abi_CHOST ${v##*.}))"
if use rustc-dev; then
- local rustc_dev_url=$(grep "xz_url.*rustc-dev-nightly-${rust_target}" "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2)
+ local rustc_dev_url=$(
+ grep "xz_url.*rustc-dev-nightly-${rust_target}" \
+ "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2
+ )
einfo "Fetching nightly rustc-dev for ${rust_target} ..."
- curl --progress-bar -L "${rustc_dev_url}" -O || die "Failed to fetch nightly rustc-dev"
+ curl --progress-bar -L "${rustc_dev_url}" -O || \
+ die "Failed to fetch nightly rustc-dev"
if use verify-sig; then
- curl --progress-bar -L "${rustc_dev_url}.asc" -O || die "Failed to fetch nightly rustc-dev signature"
+ curl --progress-bar -L "${rustc_dev_url}.asc" -O || \
+ die "Failed to fetch nightly rustc-dev signature"
verify-sig_verify_detached "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" \
"${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz.asc"
fi
- tar -xf "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" || die "Failed to unpack nightly rustc-dev"
+ tar -xf "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" || \
+ die "Failed to unpack nightly rustc-dev"
+ fi
+ if use rust_sysroots_aarch64_unknown_none; then
+ for rust_std_target in aarch64-unknown-none aarch64-unknown-none-softfloat; do
+ local rust_std_url=$(
+ grep -m 1 "xz_url.*rust-std-nightly-${rust_std_target}\\.tar\\.xz\"" \
+ "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2
+ )
+ einfo "Using nightly Rust std for ${rust_std_target} from ${rust_std_url}"
+ curl --progress-bar -L "${rust_std_url}" -O || \
+ die "Failed to fetch nightly rust-std tarball for ${rust_std_target}"
+ if use verify-sig; then
+ curl --progress-bar -L "${rust_std_url}.asc" -O || \
+ die "Failed to fetch nightly rust-std signature for ${rust_std_target}"
+ verify-sig_verify_detached "${WORKDIR}/rust-std-nightly-${rust_std_target}.tar.xz" \
+ "${WORKDIR}/rust-std-nightly-${rust_std_target}.tar.xz.asc"
+ fi
+ tar -xf "${WORKDIR}/rust-std-nightly-${rust_std_target}.tar.xz" || \
+ die "Failed to unpack nightly rust-std tarball for ${rust_std_target}"
+ done
fi
rust_bin_url=$(grep "xz_url.*rust-nightly-${rust_target}" "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2)
einfo "Using nightly Rust from ${rust_bin_url} for ${rust_target}"
@@ -149,7 +182,8 @@ src_unpack() {
done
else
# sadly rust-src tarball does not have corresponding .asc file
- # so do partial verification
+ # so do partial verification for the remaining distfiles, including
+ # rustc-dev and the aarch64-unknown-none softfloat std tarballs.
if use verify-sig; then
for f in ${A}; do
if [[ -f ${DISTDIR}/${f}.asc ]]; then
@@ -324,6 +358,22 @@ multilib_src_install() {
"${ED}/opt/${P}/lib/rustlib" || die
fi
+ if use rust_sysroots_aarch64_unknown_none; then
+ local rust_std_dir rust_std_target
+ for rust_std_target in aarch64-unknown-none aarch64-unknown-none-softfloat; do
+ for rust_std_dir in \
+ "${WORKDIR}/rust-std-${PV}-${rust_std_target}" \
+ "${WORKDIR}/rust-std-nightly-${rust_std_target}"; do
+ if [[ -d "${rust_std_dir}/rust-std-${rust_std_target}/lib/rustlib/${rust_std_target}" ]]; then
+ cp -vr \
+ "${rust_std_dir}/rust-std-${rust_std_target}/lib/rustlib/${rust_std_target}" \
+ "${ED}/opt/${P}/lib/rustlib" || die
+ break
+ fi
+ done
+ done
+ fi
+
# BUG: installs x86_64 binary on other arches
rm -f "${ED}/opt/${P}/lib/rustlib/"*/bin/rust-llvm-dwp || die
}
diff --git a/dev-lang/rust-bin/rust-bin-9999.ebuild b/dev-lang/rust-bin/rust-bin-9999.ebuild
index 17ddf327ee6f..42415227ce38 100644
--- a/dev-lang/rust-bin/rust-bin-9999.ebuild
+++ b/dev-lang/rust-bin/rust-bin-9999.ebuild
@@ -24,8 +24,12 @@ else
SRC_URI="$(rust_all_arch_uris "rust-${PV}")
rust-src? ( ${RUST_TOOLCHAIN_BASEURL%/}/2026-03-26/rust-src-${PV}.tar.xz )
rustc-dev? ( $(rust_all_arch_uris "rustc-dev-${PV}") )
+ rust_sysroots_aarch64_unknown_none? (
+ $(rust_arch_uri aarch64-unknown-none "rust-std-${PV}")
+ $(rust_arch_uri aarch64-unknown-none-softfloat "rust-std-${PV}")
+ )
"
- KEYWORDS=""~mips # ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86""
+ KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
fi
GENTOO_BIN_BASEURI="https://github.com/projg2/rust-bootstrap/releases/download/${PVR}" # omit trailing slash
@@ -57,7 +61,11 @@ fi
LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
SLOT="${PV%%_*}" # Beta releases get to share the same SLOT as the eventual stable
-IUSE="big-endian +clippy cpu_flags_x86_sse2 +doc prefix rust-analyzer rust-src rustc-dev +rustfmt"
+IUSE="
+ big-endian +clippy cpu_flags_x86_sse2 +doc
+ prefix rust-analyzer rust-src rustc-dev
+ rust_sysroots_aarch64_unknown_none +rustfmt
+"
# net-misc/curl is needed for our own bootstrapped rustc, since cross-compiling bundled curl is not supported
RDEPEND="
@@ -123,16 +131,41 @@ src_unpack() {
rust_target="$(rust_abi $(get_abi_CHOST ${v##*.}))"
if use rustc-dev; then
- local rustc_dev_url=$(grep "xz_url.*rustc-dev-nightly-${rust_target}" "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2)
+ local rustc_dev_url=$(
+ grep "xz_url.*rustc-dev-nightly-${rust_target}" \
+ "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2
+ )
einfo "Fetching nightly rustc-dev for ${rust_target} ..."
- curl --progress-bar -L "${rustc_dev_url}" -O || die "Failed to fetch nightly rustc-dev"
+ curl --progress-bar -L "${rustc_dev_url}" -O || \
+ die "Failed to fetch nightly rustc-dev"
if use verify-sig; then
- curl --progress-bar -L "${rustc_dev_url}.asc" -O || die "Failed to fetch nightly rustc-dev signature"
+ curl --progress-bar -L "${rustc_dev_url}.asc" -O || \
+ die "Failed to fetch nightly rustc-dev signature"
verify-sig_verify_detached "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" \
"${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz.asc"
fi
- tar -xf "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" || die "Failed to unpack nightly rustc-dev"
+ tar -xf "${WORKDIR}/rustc-dev-nightly-${rust_target}.tar.xz" || \
+ die "Failed to unpack nightly rustc-dev"
+ fi
+ if use rust_sysroots_aarch64_unknown_none; then
+ for rust_std_target in aarch64-unknown-none aarch64-unknown-none-softfloat; do
+ local rust_std_url=$(
+ grep -m 1 "xz_url.*rust-std-nightly-${rust_std_target}\\.tar\\.xz\"" \
+ "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2
+ )
+ einfo "Using nightly Rust std for ${rust_std_target} from ${rust_std_url}"
+ curl --progress-bar -L "${rust_std_url}" -O || \
+ die "Failed to fetch nightly rust-std tarball for ${rust_std_target}"
+ if use verify-sig; then
+ curl --progress-bar -L "${rust_std_url}.asc" -O || \
+ die "Failed to fetch nightly rust-std signature for ${rust_std_target}"
+ verify-sig_verify_detached "${WORKDIR}/rust-std-nightly-${rust_std_target}.tar.xz" \
+ "${WORKDIR}/rust-std-nightly-${rust_std_target}.tar.xz.asc"
+ fi
+ tar -xf "${WORKDIR}/rust-std-nightly-${rust_std_target}.tar.xz" || \
+ die "Failed to unpack nightly rust-std tarball for ${rust_std_target}"
+ done
fi
rust_bin_url=$(grep "xz_url.*rust-nightly-${rust_target}" "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2)
einfo "Using nightly Rust from ${rust_bin_url} for ${rust_target}"
@@ -150,7 +183,8 @@ src_unpack() {
done
else
# sadly rust-src tarball does not have corresponding .asc file
- # so do partial verification
+ # so do partial verification for the remaining distfiles, including
+ # rustc-dev and the aarch64-unknown-none softfloat std tarballs.
if use verify-sig; then
for f in ${A}; do
if [[ -f ${DISTDIR}/${f}.asc ]]; then
@@ -325,6 +359,22 @@ multilib_src_install() {
"${ED}/opt/${P}/lib/rustlib" || die
fi
+ if use rust_sysroots_aarch64_unknown_none; then
+ local rust_std_dir rust_std_target
+ for rust_std_target in aarch64-unknown-none aarch64-unknown-none-softfloat; do
+ for rust_std_dir in \
+ "${WORKDIR}/rust-std-${PV}-${rust_std_target}" \
+ "${WORKDIR}/rust-std-nightly-${rust_std_target}"; do
+ if [[ -d "${rust_std_dir}/rust-std-${rust_std_target}/lib/rustlib/${rust_std_target}" ]]; then
+ cp -vr \
+ "${rust_std_dir}/rust-std-${rust_std_target}/lib/rustlib/${rust_std_target}" \
+ "${ED}/opt/${P}/lib/rustlib" || die
+ break
+ fi
+ done
+ done
+ fi
+
# BUG: installs x86_64 binary on other arches
rm -f "${ED}/opt/${P}/lib/rustlib/"*/bin/rust-llvm-dwp || die
}
diff --git a/dev-lang/rust/rust-1.97.1.ebuild b/dev-lang/rust/rust-1.97.1.ebuild
index a3703804d518..485b782996bf 100644
--- a/dev-lang/rust/rust-1.97.1.ebuild
+++ b/dev-lang/rust/rust-1.97.1.ebuild
@@ -83,7 +83,7 @@ done
# Bare metal targets which can be built on the host system and have no
# dependency on compiler runtime, libc and unwinder.
-ALL_RUST_SYSROOTS=( bpf wasm )
+ALL_RUST_SYSROOTS=( aarch64_unknown_none bpf wasm )
ALL_RUST_SYSROOTS=( "${ALL_RUST_SYSROOTS[@]/#/rust_sysroots_}" )
LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
@@ -163,6 +163,7 @@ REQUIRED_USE="
|| ( ${ALL_LLVM_TARGETS[*]} )
rust-analyzer? ( rust-src )
test? ( ${ALL_LLVM_TARGETS[*]} )
+ rust_sysroots_aarch64_unknown_none? ( llvm_targets_AArch64 )
rust_sysroots_bpf? ( llvm_targets_BPF )
rust_sysroots_wasm? ( llvm_targets_WebAssembly )
x86? ( cpu_flags_x86_sse2 )
@@ -208,6 +209,33 @@ toml_usex() {
usex "${1}" true false
}
+# Returns "host" (if native arm64 or host CC is clang), "clang" (if clang is
+# available), or the crossdev tuple prefix for an installed aarch64 GCC.
+rust_get_aarch64_baremetal_tc() {
+ if use arm64 || tc-is-clang; then
+ echo "host"
+ return 0
+ fi
+
+ if command -v "${CHOST}-clang" >/dev/null 2>&1; then
+ if "${CHOST}-clang" --print-targets 2>/dev/null | grep -q "aarch64"; then
+ echo "clang"
+ return 0
+ fi
+ fi
+
+ local tuple
+ # Just try some common crossdev toolchain prefixes for aarch64
+ for tuple in aarch64-unknown-none aarch64-none-elf aarch64-elf aarch64-unknown-linux-gnu aarch64-linux-gnu; do
+ if command -v "${tuple}-gcc" >/dev/null 2>&1; then
+ echo "${tuple}"
+ return 0
+ fi
+ done
+
+ return 1
+}
+
pre_build_checks() {
local M=9216
# multiply requirements by 1.3 if we are doing x86-multilib
@@ -227,6 +255,7 @@ pre_build_checks() {
M=$(( $(usex ${ltarget} 256 0) + ${M} ))
done
fi
+ M=$(( $(usex rust_sysroots_aarch64_unknown_none 256 0) + ${M} ))
M=$(( $(usex rust_sysroots_bpf 256 0) + ${M} ))
M=$(( $(usex rust_sysroots_wasm 256 0) + ${M} ))
M=$(( $(usex debug 2 1) * ${M} ))
@@ -237,6 +266,17 @@ pre_build_checks() {
eshopts_pop
M=$(( $(usex doc 256 0) + ${M} ))
CHECKREQS_DISK_BUILD=${M}M check-reqs_pkg_${EBUILD_PHASE}
+
+ # This is best-effort - There _will_ be footguns / edge cases when detecting the baremetal toolchain
+ # if we don't want to _force_ users into installing Clang either way via BDEPEND.
+ # We can assume that users wanting rust_sysroots_aarch64_unknown_none are aware
+ # of the requirements for a baremetal AArch64 toolchain
+ if use rust_sysroots_aarch64_unknown_none && ! rust_get_aarch64_baremetal_tc >/dev/null; then
+ eerror "USE=rust_sysroots_aarch64_unknown_none on non-arm64 requires either:"
+ eerror " 1. llvm-core/clang installed with LLVM_TARGETS=\"AArch64\", OR"
+ eerror " 2. An aarch64 crossdev toolchain (e.g. 'crossdev -s1 -t aarch64-unknown-none')"
+ die "No suitable AArch64 C compiler found for rust_sysroots_aarch64_unknown_none"
+ fi
}
llvm_check_deps() {
@@ -287,8 +327,11 @@ pkg_setup() {
llvm-r2_pkg_setup
local llvm_config="$(get_llvm_prefix)/bin/llvm-config"
+ # ebuild ... protection (developers)
+ [[ -x "${llvm_config}" ]] || die "system-llvm selected but llvm-config is unavailable: ${llvm_config}"
+ local llvm_libdir="$(${llvm_config} --libdir)"
export LLVM_LINK_SHARED=1
- export RUSTFLAGS="${RUSTFLAGS} -Lnative=$("${llvm_config}" --libdir)"
+ export RUSTFLAGS="${RUSTFLAGS} -Lnative=${llvm_libdir}"
fi
}
@@ -449,6 +492,9 @@ src_configure() {
if use rust_sysroots_bpf; then
rust_targets+=",\"bpfeb-unknown-none\",\"bpfel-unknown-none\""
fi
+ if use rust_sysroots_aarch64_unknown_none; then
+ rust_targets+=",\"aarch64-unknown-none\",\"aarch64-unknown-none-softfloat\""
+ fi
if use rust_sysroots_wasm; then
rust_targets+=",\"wasm32-unknown-unknown\""
if use system-llvm; then
@@ -620,6 +666,13 @@ src_configure() {
compression-profile = "balanced"
_EOF_
+ local host_ar host_cc host_cxx host_linker host_ranlib
+ host_ar="$(tc-getAR)"
+ host_cc="$(tc-getCC)"
+ host_cxx="$(tc-getCXX)"
+ host_linker="$(tc-getCC)"
+ host_ranlib="$(tc-getRANLIB)"
+
for v in $(multilib_get_enabled_abi_pairs); do
rust_target=$(rust_abi $(get_abi_CHOST ${v##*.}))
arch_cflags="$(get_abi_CFLAGS ${v##*.})"
@@ -628,11 +681,11 @@ src_configure() {
cat <<- _EOF_ >> "${S}"/bootstrap.toml
[target.${rust_target}]
- ar = "$(tc-getAR)"
- cc = "$(tc-getCC)"
- cxx = "$(tc-getCXX)"
- linker = "$(tc-getCC)"
- ranlib = "$(tc-getRANLIB)"
+ ar = "${host_ar}"
+ cc = "${host_cc}"
+ cxx = "${host_cxx}"
+ linker = "${host_linker}"
+ ranlib = "${host_ranlib}"
llvm-libunwind = "$(usex llvm-libunwind $(usex system-llvm system in-tree) no)"
_EOF_
if use system-llvm; then
@@ -673,6 +726,59 @@ src_configure() {
profiler = false
_EOF_
fi
+ if use rust_sysroots_aarch64_unknown_none; then
+ local bm_tc="$(rust_get_aarch64_baremetal_tc)"
+ local baremetal_ar baremetal_cc baremetal_cxx baremetal_linker baremetal_ranlib
+
+ case "${bm_tc}" in
+ host) # host toolchain if suitable (native arm64 gcc or tc-is-clang)
+ baremetal_ar="$(tc-getAR)"
+ baremetal_cc="$(tc-getCC)"
+ baremetal_cxx="$(tc-getCXX)"
+ baremetal_linker="$(tc-getCC)"
+ baremetal_ranlib="$(tc-getRANLIB)"
+ ;;
+ clang) # host toolchain is GCC but we have a valid Clang for baremetal
+ baremetal_ar="llvm-ar"
+ baremetal_cc="${CHOST}-clang"
+ baremetal_cxx="${CHOST}-clang++"
+ baremetal_linker="$(usex system-llvm lld rust-lld)"
+ baremetal_ranlib="llvm-ranlib"
+ ;;
+ *) # crossdev (have fun, best effort detecting on tuple)
+ baremetal_ar="${bm_tc}-ar"
+ baremetal_cc="${bm_tc}-gcc"
+ baremetal_cxx="${bm_tc}-g++"
+ baremetal_linker="${bm_tc}-gcc"
+ baremetal_ranlib="${bm_tc}-ranlib"
+ ;;
+ esac
+
+ local target
+ for target in aarch64-unknown-none aarch64-unknown-none-softfloat; do
+ export CFLAGS_${target//-/_}="$(
+ if [[ ${bm_tc} == "clang" ]] || ( [[ ${bm_tc} == "host" ]] && tc-is-clang ); then
+ CC="${baremetal_cc} --target=aarch64-unknown-none" # no softfloat clang target
+ else
+ CC="${baremetal_cc}"
+ fi
+ if ! use arm64; then
+ filter-flags '-mcpu*' '-march*' '-mtune*'
+ fi
+ strip-unsupported-flags
+ echo "${CFLAGS}"
+ )"
+ cat <<- _EOF_ >> "${S}"/bootstrap.toml
+ [target.${target}]
+ ar = "${baremetal_ar}"
+ cc = "${baremetal_cc}"
+ cxx = "${baremetal_cxx}"
+ linker = "${baremetal_linker}"
+ ranlib = "${baremetal_ranlib}"
+ profiler = false
+ _EOF_
+ done
+ fi
if [[ -n ${I_KNOW_WHAT_I_AM_DOING_CROSS} ]]; then # whitespace intentionally shifted below
# experimental cross support
@@ -845,7 +951,8 @@ src_install() {
DESTDIR="${D}" "${EPYTHON}" ./x.py install -v \
--config="${S}"/bootstrap.toml -j$(get_makeopts_jobs) || die
- # Not required for general use, installs rustc-dev component (i.e. internal rlibs) needed to link to compiler internals for (e.g.) crubit
+ # Not required for general use, installs rustc-dev component (i.e. internal rlibs)
+ # needed to link to compiler internals for (e.g.) crubit
use rustc-dev && DESTDIR="${D}" "${EPYTHON}" ./x.py install rustc-dev -v \
--config="${S}"/bootstrap.toml -j$(get_makeopts_jobs) || die
diff --git a/dev-lang/rust/rust-1.98.1.ebuild b/dev-lang/rust/rust-1.98.1.ebuild
index e500f51f1404..0fcbbdb4a2c8 100644
--- a/dev-lang/rust/rust-1.98.1.ebuild
+++ b/dev-lang/rust/rust-1.98.1.ebuild
@@ -83,7 +83,7 @@ done
# Bare metal targets which can be built on the host system and have no
# dependency on compiler runtime, libc and unwinder.
-ALL_RUST_SYSROOTS=( bpf wasm )
+ALL_RUST_SYSROOTS=( aarch64_unknown_none bpf wasm )
ALL_RUST_SYSROOTS=( "${ALL_RUST_SYSROOTS[@]/#/rust_sysroots_}" )
LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
@@ -163,6 +163,7 @@ REQUIRED_USE="
|| ( ${ALL_LLVM_TARGETS[*]} )
rust-analyzer? ( rust-src )
test? ( ${ALL_LLVM_TARGETS[*]} )
+ rust_sysroots_aarch64_unknown_none? ( llvm_targets_AArch64 )
rust_sysroots_bpf? ( llvm_targets_BPF )
rust_sysroots_wasm? ( llvm_targets_WebAssembly )
x86? ( cpu_flags_x86_sse2 )
@@ -208,6 +209,33 @@ toml_usex() {
usex "${1}" true false
}
+# Returns "host" (if native arm64 or host CC is clang), "clang" (if clang is
+# available), or the crossdev tuple prefix for an installed aarch64 GCC.
+rust_get_aarch64_baremetal_tc() {
+ if use arm64 || tc-is-clang; then
+ echo "host"
+ return 0
+ fi
+
+ if command -v "${CHOST}-clang" >/dev/null 2>&1; then
+ if "${CHOST}-clang" --print-targets 2>/dev/null | grep -q "aarch64"; then
+ echo "clang"
+ return 0
+ fi
+ fi
+
+ local tuple
+ # Just try some common crossdev toolchain prefixes for aarch64
+ for tuple in aarch64-unknown-none aarch64-none-elf aarch64-elf aarch64-unknown-linux-gnu aarch64-linux-gnu; do
+ if command -v "${tuple}-gcc" >/dev/null 2>&1; then
+ echo "${tuple}"
+ return 0
+ fi
+ done
+
+ return 1
+}
+
pre_build_checks() {
local M=9216
# multiply requirements by 1.3 if we are doing x86-multilib
@@ -227,6 +255,7 @@ pre_build_checks() {
M=$(( $(usex ${ltarget} 256 0) + ${M} ))
done
fi
+ M=$(( $(usex rust_sysroots_aarch64_unknown_none 256 0) + ${M} ))
M=$(( $(usex rust_sysroots_bpf 256 0) + ${M} ))
M=$(( $(usex rust_sysroots_wasm 256 0) + ${M} ))
M=$(( $(usex debug 2 1) * ${M} ))
@@ -237,6 +266,17 @@ pre_build_checks() {
eshopts_pop
M=$(( $(usex doc 256 0) + ${M} ))
CHECKREQS_DISK_BUILD=${M}M check-reqs_pkg_${EBUILD_PHASE}
+
+ # This is best-effort - There _will_ be footguns / edge cases when detecting the baremetal toolchain
+ # if we don't want to _force_ users into installing Clang either way via BDEPEND.
+ # We can assume that users wanting rust_sysroots_aarch64_unknown_none are aware
+ # of the requirements for a baremetal AArch64 toolchain
+ if use rust_sysroots_aarch64_unknown_none && ! rust_get_aarch64_baremetal_tc >/dev/null; then
+ eerror "USE=rust_sysroots_aarch64_unknown_none on non-arm64 requires either:"
+ eerror " 1. llvm-core/clang installed with LLVM_TARGETS=\"AArch64\", OR"
+ eerror " 2. An aarch64 crossdev toolchain (e.g. 'crossdev -s1 -t aarch64-unknown-none')"
+ die "No suitable AArch64 C compiler found for rust_sysroots_aarch64_unknown_none"
+ fi
}
llvm_check_deps() {
@@ -287,8 +327,11 @@ pkg_setup() {
llvm-r2_pkg_setup
local llvm_config="$(get_llvm_prefix)/bin/llvm-config"
+ # ebuild ... protection (developers)
+ [[ -x "${llvm_config}" ]] || die "system-llvm selected but llvm-config is unavailable: ${llvm_config}"
+ local llvm_libdir="$(${llvm_config} --libdir)"
export LLVM_LINK_SHARED=1
- export RUSTFLAGS="${RUSTFLAGS} -Lnative=$("${llvm_config}" --libdir)"
+ export RUSTFLAGS="${RUSTFLAGS} -Lnative=${llvm_libdir}"
fi
}
@@ -449,6 +492,9 @@ src_configure() {
if use rust_sysroots_bpf; then
rust_targets+=",\"bpfeb-unknown-none\",\"bpfel-unknown-none\""
fi
+ if use rust_sysroots_aarch64_unknown_none; then
+ rust_targets+=",\"aarch64-unknown-none\",\"aarch64-unknown-none-softfloat\""
+ fi
if use rust_sysroots_wasm; then
rust_targets+=",\"wasm32-unknown-unknown\""
if use system-llvm; then
@@ -620,6 +666,13 @@ src_configure() {
compression-profile = "balanced"
_EOF_
+ local host_ar host_cc host_cxx host_linker host_ranlib
+ host_ar="$(tc-getAR)"
+ host_cc="$(tc-getCC)"
+ host_cxx="$(tc-getCXX)"
+ host_linker="$(tc-getCC)"
+ host_ranlib="$(tc-getRANLIB)"
+
for v in $(multilib_get_enabled_abi_pairs); do
rust_target=$(rust_abi $(get_abi_CHOST ${v##*.}))
arch_cflags="$(get_abi_CFLAGS ${v##*.})"
@@ -628,11 +681,11 @@ src_configure() {
cat <<- _EOF_ >> "${S}"/bootstrap.toml
[target.${rust_target}]
- ar = "$(tc-getAR)"
- cc = "$(tc-getCC)"
- cxx = "$(tc-getCXX)"
- linker = "$(tc-getCC)"
- ranlib = "$(tc-getRANLIB)"
+ ar = "${host_ar}"
+ cc = "${host_cc}"
+ cxx = "${host_cxx}"
+ linker = "${host_linker}"
+ ranlib = "${host_ranlib}"
llvm-libunwind = "$(usex llvm-libunwind $(usex system-llvm system in-tree) no)"
_EOF_
if use system-llvm; then
@@ -673,6 +726,60 @@ src_configure() {
profiler = false
_EOF_
fi
+ if use rust_sysroots_aarch64_unknown_none; then
+ local bm_tc="$(rust_get_aarch64_baremetal_tc)"
+ local baremetal_ar baremetal_cc baremetal_cxx baremetal_linker baremetal_ranlib
+
+ case "${bm_tc}" in
+ host) # host toolchain if suitable (native [armg64] gcc or tc-is-clang)
+ baremetal_ar="$(tc-getAR)"
+ baremetal_cc="$(tc-getCC)"
+ baremetal_cxx="$(tc-getCXX)"
+ baremetal_linker="$(tc-getCC)"
+ baremetal_ranlib="$(tc-getRANLIB)"
+ ;;
+ clang) # host toolchain is GCC but we have a valid Clang for baremetal
+ baremetal_ar="llvm-ar"
+ baremetal_cc="${CHOST}-clang"
+ baremetal_cxx="${CHOST}-clang++"
+ baremetal_linker="$(usex system-llvm lld rust-lld)"
+ baremetal_ranlib="llvm-ranlib"
+ ;;
+ *) # crossdev (have fun, best effort detecting on tuple)
+ baremetal_ar="${bm_tc}-ar"
+ baremetal_cc="${bm_tc}-gcc"
+ baremetal_cxx="${bm_tc}-g++"
+ baremetal_linker="${bm_tc}-gcc"
+ baremetal_ranlib="${bm_tc}-ranlib"
+ ;;
+ esac
+
+ local target
+ for target in aarch64-unknown-none aarch64-unknown-none-softfloat; do
+ export CFLAGS_${target//-/_}="$(
+ if [[ ${bm_tc} == "clang" ]] || ( [[ ${bm_tc} == "host" ]] && tc-is-clang ); then
+ CC="${baremetal_cc} --target=aarch64-unknown-none" # no softfloat clang target
+ else
+ CC="${baremetal_cc}"
+ fi
+ # CC set above is used to strip any unsupported flags from environment CFLAGS for the target
+ if ! use arm64; then
+ filter-flags '-mcpu*' '-march*' '-mtune*'
+ fi
+ strip-unsupported-flags
+ echo "${CFLAGS}"
+ )"
+ cat <<- _EOF_ >> "${S}"/bootstrap.toml
+ [target.${target}]
+ ar = "${baremetal_ar}"
+ cc = "${baremetal_cc}"
+ cxx = "${baremetal_cxx}"
+ linker = "${baremetal_linker}"
+ ranlib = "${baremetal_ranlib}"
+ profiler = false
+ _EOF_
+ done
+ fi
if [[ -n ${I_KNOW_WHAT_I_AM_DOING_CROSS} ]]; then # whitespace intentionally shifted below
# experimental cross support
@@ -687,12 +794,12 @@ src_configure() {
# best place would be /etc/portage/env/dev-lang/rust
# Example:
# RUST_CROSS_TARGETS=(
- # "AArch64:aarch64-unknown-linux-gnu:aarch64-unknown-linux-gnu"
+ # "AArch64:aarch64-unknown-linux-gnu:aarch64-unknown-linux-gnu"
# )
# no extra hand holding is done, no target transformations, all
# values are passed as-is with just basic checks, so it's up to user to supply correct values
# valid rust targets can be obtained with
- # rustc --print target-list
+ # rustc --print target-list
# matching cross toolchain has to be installed
# matching LLVM_TARGET has to be enabled for both rust and llvm (if using system one)
# only gcc toolchains installed with crossdev are checked for now.
@@ -845,7 +952,8 @@ src_install() {
DESTDIR="${D}" "${EPYTHON}" ./x.py install -v \
--config="${S}"/bootstrap.toml -j$(get_makeopts_jobs) || die
- # Not required for general use, installs rustc-dev component (i.e. internal rlibs) needed to link to compiler internals for (e.g.) crubit
+ # Not required for general use, installs rustc-dev component (i.e. internal rlibs)
+ # needed to link to compiler internals for (e.g.) crubit
use rustc-dev && DESTDIR="${D}" "${EPYTHON}" ./x.py install rustc-dev -v \
--config="${S}"/bootstrap.toml -j$(get_makeopts_jobs) || die
diff --git a/dev-lang/rust/rust-1.99.0.ebuild b/dev-lang/rust/rust-1.99.0.ebuild
index 013e9dc9db59..32b0eaaa3b55 100644
--- a/dev-lang/rust/rust-1.99.0.ebuild
+++ b/dev-lang/rust/rust-1.99.0.ebuild
@@ -83,7 +83,7 @@ done
# Bare metal targets which can be built on the host system and have no
# dependency on compiler runtime, libc and unwinder.
-ALL_RUST_SYSROOTS=( bpf wasm )
+ALL_RUST_SYSROOTS=( aarch64_unknown_none bpf wasm )
ALL_RUST_SYSROOTS=( "${ALL_RUST_SYSROOTS[@]/#/rust_sysroots_}" )
LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
@@ -163,6 +163,7 @@ REQUIRED_USE="
|| ( ${ALL_LLVM_TARGETS[*]} )
rust-analyzer? ( rust-src )
test? ( ${ALL_LLVM_TARGETS[*]} )
+ rust_sysroots_aarch64_unknown_none? ( llvm_targets_AArch64 )
rust_sysroots_bpf? ( llvm_targets_BPF )
rust_sysroots_wasm? ( llvm_targets_WebAssembly )
x86? ( cpu_flags_x86_sse2 )
@@ -208,6 +209,33 @@ toml_usex() {
usex "${1}" true false
}
+# Returns "host" (if native arm64 or host CC is clang), "clang" (if clang is
+# available), or the crossdev tuple prefix for an installed aarch64 GCC.
+rust_get_aarch64_baremetal_tc() {
+ if use arm64 || tc-is-clang; then
+ echo "host"
+ return 0
+ fi
+
+ if command -v "${CHOST}-clang" >/dev/null 2>&1; then
+ if "${CHOST}-clang" --print-targets 2>/dev/null | grep -q "aarch64"; then
+ echo "clang"
+ return 0
+ fi
+ fi
+
+ local tuple
+ # Just try some common crossdev toolchain prefixes for aarch64
+ for tuple in aarch64-unknown-none aarch64-none-elf aarch64-elf aarch64-unknown-linux-gnu aarch64-linux-gnu; do
+ if command -v "${tuple}-gcc" >/dev/null 2>&1; then
+ echo "${tuple}"
+ return 0
+ fi
+ done
+
+ return 1
+}
+
pre_build_checks() {
local M=9216
# multiply requirements by 1.3 if we are doing x86-multilib
@@ -227,6 +255,7 @@ pre_build_checks() {
M=$(( $(usex ${ltarget} 256 0) + ${M} ))
done
fi
+ M=$(( $(usex rust_sysroots_aarch64_unknown_none 256 0) + ${M} ))
M=$(( $(usex rust_sysroots_bpf 256 0) + ${M} ))
M=$(( $(usex rust_sysroots_wasm 256 0) + ${M} ))
M=$(( $(usex debug 2 1) * ${M} ))
@@ -237,6 +266,17 @@ pre_build_checks() {
eshopts_pop
M=$(( $(usex doc 256 0) + ${M} ))
CHECKREQS_DISK_BUILD=${M}M check-reqs_pkg_${EBUILD_PHASE}
+
+ # This is best-effort - There _will_ be footguns / edge cases when detecting the baremetal toolchain
+ # if we don't want to _force_ users into installing Clang either way via BDEPEND.
+ # We can assume that users wanting rust_sysroots_aarch64_unknown_none are aware
+ # of the requirements for a baremetal AArch64 toolchain
+ if use rust_sysroots_aarch64_unknown_none && ! rust_get_aarch64_baremetal_tc >/dev/null; then
+ eerror "USE=rust_sysroots_aarch64_unknown_none on non-arm64 requires either:"
+ eerror " 1. llvm-core/clang installed with LLVM_TARGETS=\"AArch64\", OR"
+ eerror " 2. An aarch64 crossdev toolchain (e.g. 'crossdev -s1 -t aarch64-unknown-none')"
+ die "No suitable AArch64 C compiler found for rust_sysroots_aarch64_unknown_none"
+ fi
}
llvm_check_deps() {
@@ -287,8 +327,11 @@ pkg_setup() {
llvm-r2_pkg_setup
local llvm_config="$(get_llvm_prefix)/bin/llvm-config"
+ # ebuild ... protection (developers)
+ [[ -x "${llvm_config}" ]] || die "system-llvm selected but llvm-config is unavailable: ${llvm_config}"
+ local llvm_libdir="$(${llvm_config} --libdir)"
export LLVM_LINK_SHARED=1
- export RUSTFLAGS="${RUSTFLAGS} -Lnative=$("${llvm_config}" --libdir)"
+ export RUSTFLAGS="${RUSTFLAGS} -Lnative=${llvm_libdir}"
fi
}
@@ -449,6 +492,9 @@ src_configure() {
if use rust_sysroots_bpf; then
rust_targets+=",\"bpfeb-unknown-none\",\"bpfel-unknown-none\""
fi
+ if use rust_sysroots_aarch64_unknown_none; then
+ rust_targets+=",\"aarch64-unknown-none\",\"aarch64-unknown-none-softfloat\""
+ fi
if use rust_sysroots_wasm; then
rust_targets+=",\"wasm32-unknown-unknown\""
if use system-llvm; then
@@ -620,6 +666,13 @@ src_configure() {
compression-profile = "balanced"
_EOF_
+ local host_ar host_cc host_cxx host_linker host_ranlib
+ host_ar="$(tc-getAR)"
+ host_cc="$(tc-getCC)"
+ host_cxx="$(tc-getCXX)"
+ host_linker="$(tc-getCC)"
+ host_ranlib="$(tc-getRANLIB)"
+
for v in $(multilib_get_enabled_abi_pairs); do
rust_target=$(rust_abi $(get_abi_CHOST ${v##*.}))
arch_cflags="$(get_abi_CFLAGS ${v##*.})"
@@ -628,11 +681,11 @@ src_configure() {
cat <<- _EOF_ >> "${S}"/bootstrap.toml
[target.${rust_target}]
- ar = "$(tc-getAR)"
- cc = "$(tc-getCC)"
- cxx = "$(tc-getCXX)"
- linker = "$(tc-getCC)"
- ranlib = "$(tc-getRANLIB)"
+ ar = "${host_ar}"
+ cc = "${host_cc}"
+ cxx = "${host_cxx}"
+ linker = "${host_linker}"
+ ranlib = "${host_ranlib}"
llvm-libunwind = "$(usex llvm-libunwind $(usex system-llvm system in-tree) no)"
_EOF_
if use system-llvm; then
@@ -673,6 +726,59 @@ src_configure() {
profiler = false
_EOF_
fi
+ if use rust_sysroots_aarch64_unknown_none; then
+ local bm_tc="$(rust_get_aarch64_baremetal_tc)"
+ local baremetal_ar baremetal_cc baremetal_cxx baremetal_linker baremetal_ranlib
+
+ case "${bm_tc}" in
+ host) # host toolchain if suitable (native arm64 gcc or tc-is-clang)
+ baremetal_ar="$(tc-getAR)"
+ baremetal_cc="$(tc-getCC)"
+ baremetal_cxx="$(tc-getCXX)"
+ baremetal_linker="$(tc-getCC)"
+ baremetal_ranlib="$(tc-getRANLIB)"
+ ;;
+ clang) # host toolchain is GCC but we have a valid Clang for baremetal
+ baremetal_ar="llvm-ar"
+ baremetal_cc="${CHOST}-clang"
+ baremetal_cxx="${CHOST}-clang++"
+ baremetal_linker="$(usex system-llvm lld rust-lld)"
+ baremetal_ranlib="llvm-ranlib"
+ ;;
+ *) # crossdev (have fun, best effort detecting on tuple)
+ baremetal_ar="${bm_tc}-ar"
+ baremetal_cc="${bm_tc}-gcc"
+ baremetal_cxx="${bm_tc}-g++"
+ baremetal_linker="${bm_tc}-gcc"
+ baremetal_ranlib="${bm_tc}-ranlib"
+ ;;
+ esac
+
+ local target
+ for target in aarch64-unknown-none aarch64-unknown-none-softfloat; do
+ export CFLAGS_${target//-/_}="$(
+ if [[ ${bm_tc} == "clang" ]] || ( [[ ${bm_tc} == "host" ]] && tc-is-clang ); then
+ CC="${baremetal_cc} --target=aarch64-unknown-none" # no softfloat clang target
+ else
+ CC="${baremetal_cc}"
+ fi
+ if ! use arm64; then
+ filter-flags '-mcpu*' '-march*' '-mtune*'
+ fi
+ strip-unsupported-flags
+ echo "${CFLAGS}"
+ )"
+ cat <<- _EOF_ >> "${S}"/bootstrap.toml
+ [target.${target}]
+ ar = "${baremetal_ar}"
+ cc = "${baremetal_cc}"
+ cxx = "${baremetal_cxx}"
+ linker = "${baremetal_linker}"
+ ranlib = "${baremetal_ranlib}"
+ profiler = false
+ _EOF_
+ done
+ fi
if [[ -n ${I_KNOW_WHAT_I_AM_DOING_CROSS} ]]; then # whitespace intentionally shifted below
# experimental cross support
@@ -845,7 +951,8 @@ src_install() {
DESTDIR="${D}" "${EPYTHON}" ./x.py install -v \
--config="${S}"/bootstrap.toml -j$(get_makeopts_jobs) || die
- # Not required for general use, installs rustc-dev component (i.e. internal rlibs) needed to link to compiler internals for (e.g.) crubit
+ # Not required for general use, installs rustc-dev component (i.e. internal rlibs)
+ # needed to link to compiler internals for (e.g.) crubit
use rustc-dev && DESTDIR="${D}" "${EPYTHON}" ./x.py install rustc-dev -v \
--config="${S}"/bootstrap.toml -j$(get_makeopts_jobs) || die
diff --git a/dev-lang/rust/rust-9999.ebuild b/dev-lang/rust/rust-9999.ebuild
index 90f4b6867ffa..1c3d1bfe45d7 100644
--- a/dev-lang/rust/rust-9999.ebuild
+++ b/dev-lang/rust/rust-9999.ebuild
@@ -83,7 +83,7 @@ done
# Bare metal targets which can be built on the host system and have no
# dependency on compiler runtime, libc and unwinder.
-ALL_RUST_SYSROOTS=( bpf wasm )
+ALL_RUST_SYSROOTS=( aarch64_unknown_none bpf wasm )
ALL_RUST_SYSROOTS=( "${ALL_RUST_SYSROOTS[@]/#/rust_sysroots_}" )
LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
@@ -163,6 +163,7 @@ REQUIRED_USE="
|| ( ${ALL_LLVM_TARGETS[*]} )
rust-analyzer? ( rust-src )
test? ( ${ALL_LLVM_TARGETS[*]} )
+ rust_sysroots_aarch64_unknown_none? ( llvm_targets_AArch64 )
rust_sysroots_bpf? ( llvm_targets_BPF )
rust_sysroots_wasm? ( llvm_targets_WebAssembly )
x86? ( cpu_flags_x86_sse2 )
@@ -208,6 +209,33 @@ toml_usex() {
usex "${1}" true false
}
+# Returns "host" (if native arm64 or host CC is clang), "clang" (if clang is
+# available), or the crossdev tuple prefix for an installed aarch64 GCC.
+rust_get_aarch64_baremetal_tc() {
+ if use arm64 || tc-is-clang; then
+ echo "host"
+ return 0
+ fi
+
+ if command -v "${CHOST}-clang" >/dev/null 2>&1; then
+ if "${CHOST}-clang" --print-targets 2>/dev/null | grep -q "aarch64"; then
+ echo "clang"
+ return 0
+ fi
+ fi
+
+ local tuple
+ # Just try some common crossdev toolchain prefixes for aarch64
+ for tuple in aarch64-unknown-none aarch64-none-elf aarch64-elf aarch64-unknown-linux-gnu aarch64-linux-gnu; do
+ if command -v "${tuple}-gcc" >/dev/null 2>&1; then
+ echo "${tuple}"
+ return 0
+ fi
+ done
+
+ return 1
+}
+
pre_build_checks() {
local M=9216
# multiply requirements by 1.3 if we are doing x86-multilib
@@ -227,6 +255,7 @@ pre_build_checks() {
M=$(( $(usex ${ltarget} 256 0) + ${M} ))
done
fi
+ M=$(( $(usex rust_sysroots_aarch64_unknown_none 256 0) + ${M} ))
M=$(( $(usex rust_sysroots_bpf 256 0) + ${M} ))
M=$(( $(usex rust_sysroots_wasm 256 0) + ${M} ))
M=$(( $(usex debug 2 1) * ${M} ))
@@ -237,6 +266,17 @@ pre_build_checks() {
eshopts_pop
M=$(( $(usex doc 256 0) + ${M} ))
CHECKREQS_DISK_BUILD=${M}M check-reqs_pkg_${EBUILD_PHASE}
+
+ # This is best-effort - There _will_ be footguns / edge cases when detecting the baremetal toolchain
+ # if we don't want to _force_ users into installing Clang either way via BDEPEND.
+ # We can assume that users wanting rust_sysroots_aarch64_unknown_none are aware
+ # of the requirements for a baremetal AArch64 toolchain
+ if use rust_sysroots_aarch64_unknown_none && ! rust_get_aarch64_baremetal_tc >/dev/null; then
+ eerror "USE=rust_sysroots_aarch64_unknown_none on non-arm64 requires either:"
+ eerror " 1. llvm-core/clang installed with LLVM_TARGETS=\"AArch64\", OR"
+ eerror " 2. An aarch64 crossdev toolchain (e.g. 'crossdev -s1 -t aarch64-unknown-none')"
+ die "No suitable AArch64 C compiler found for rust_sysroots_aarch64_unknown_none"
+ fi
}
llvm_check_deps() {
@@ -287,8 +327,11 @@ pkg_setup() {
llvm-r2_pkg_setup
local llvm_config="$(get_llvm_prefix)/bin/llvm-config"
+ # ebuild ... protection (developers)
+ [[ -x "${llvm_config}" ]] || die "system-llvm selected but llvm-config is unavailable: ${llvm_config}"
+ local llvm_libdir="$(${llvm_config} --libdir)"
export LLVM_LINK_SHARED=1
- export RUSTFLAGS="${RUSTFLAGS} -Lnative=$("${llvm_config}" --libdir)"
+ export RUSTFLAGS="${RUSTFLAGS} -Lnative=${llvm_libdir}"
fi
}
@@ -449,6 +492,9 @@ src_configure() {
if use rust_sysroots_bpf; then
rust_targets+=",\"bpfeb-unknown-none\",\"bpfel-unknown-none\""
fi
+ if use rust_sysroots_aarch64_unknown_none; then
+ rust_targets+=",\"aarch64-unknown-none\",\"aarch64-unknown-none-softfloat\""
+ fi
if use rust_sysroots_wasm; then
rust_targets+=",\"wasm32-unknown-unknown\""
if use system-llvm; then
@@ -620,6 +666,13 @@ src_configure() {
compression-profile = "balanced"
_EOF_
+ local host_ar host_cc host_cxx host_linker host_ranlib
+ host_ar="$(tc-getAR)"
+ host_cc="$(tc-getCC)"
+ host_cxx="$(tc-getCXX)"
+ host_linker="$(tc-getCC)"
+ host_ranlib="$(tc-getRANLIB)"
+
for v in $(multilib_get_enabled_abi_pairs); do
rust_target=$(rust_abi $(get_abi_CHOST ${v##*.}))
arch_cflags="$(get_abi_CFLAGS ${v##*.})"
@@ -628,11 +681,11 @@ src_configure() {
cat <<- _EOF_ >> "${S}"/bootstrap.toml
[target.${rust_target}]
- ar = "$(tc-getAR)"
- cc = "$(tc-getCC)"
- cxx = "$(tc-getCXX)"
- linker = "$(tc-getCC)"
- ranlib = "$(tc-getRANLIB)"
+ ar = "${host_ar}"
+ cc = "${host_cc}"
+ cxx = "${host_cxx}"
+ linker = "${host_linker}"
+ ranlib = "${host_ranlib}"
llvm-libunwind = "$(usex llvm-libunwind $(usex system-llvm system in-tree) no)"
_EOF_
if use system-llvm; then
@@ -673,6 +726,59 @@ src_configure() {
profiler = false
_EOF_
fi
+ if use rust_sysroots_aarch64_unknown_none; then
+ local bm_tc="$(rust_get_aarch64_baremetal_tc)"
+ local baremetal_ar baremetal_cc baremetal_cxx baremetal_linker baremetal_ranlib
+
+ case "${bm_tc}" in
+ host) # host toolchain if suitable (native arm64 gcc or tc-is-clang)
+ baremetal_ar="$(tc-getAR)"
+ baremetal_cc="$(tc-getCC)"
+ baremetal_cxx="$(tc-getCXX)"
+ baremetal_linker="$(tc-getCC)"
+ baremetal_ranlib="$(tc-getRANLIB)"
+ ;;
+ clang) # host toolchain is GCC but we have a valid Clang for baremetal
+ baremetal_ar="llvm-ar"
+ baremetal_cc="${CHOST}-clang"
+ baremetal_cxx="${CHOST}-clang++"
+ baremetal_linker="$(usex system-llvm lld rust-lld)"
+ baremetal_ranlib="llvm-ranlib"
+ ;;
+ *) # crossdev (have fun, best effort detecting on tuple)
+ baremetal_ar="${bm_tc}-ar"
+ baremetal_cc="${bm_tc}-gcc"
+ baremetal_cxx="${bm_tc}-g++"
+ baremetal_linker="${bm_tc}-gcc"
+ baremetal_ranlib="${bm_tc}-ranlib"
+ ;;
+ esac
+
+ local target
+ for target in aarch64-unknown-none aarch64-unknown-none-softfloat; do
+ export CFLAGS_${target//-/_}="$(
+ if [[ ${bm_tc} == "clang" ]] || ( [[ ${bm_tc} == "host" ]] && tc-is-clang ); then
+ CC="${baremetal_cc} --target=aarch64-unknown-none" # no softfloat clang target
+ else
+ CC="${baremetal_cc}"
+ fi
+ if ! use arm64; then
+ filter-flags '-mcpu*' '-march*' '-mtune*'
+ fi
+ strip-unsupported-flags
+ echo "${CFLAGS}"
+ )"
+ cat <<- _EOF_ >> "${S}"/bootstrap.toml
+ [target.${target}]
+ ar = "${baremetal_ar}"
+ cc = "${baremetal_cc}"
+ cxx = "${baremetal_cxx}"
+ linker = "${baremetal_linker}"
+ ranlib = "${baremetal_ranlib}"
+ profiler = false
+ _EOF_
+ done
+ fi
if [[ -n ${I_KNOW_WHAT_I_AM_DOING_CROSS} ]]; then # whitespace intentionally shifted below
# experimental cross support
@@ -845,7 +951,8 @@ src_install() {
DESTDIR="${D}" "${EPYTHON}" ./x.py install -v \
--config="${S}"/bootstrap.toml -j$(get_makeopts_jobs) || die
- # Not required for general use, installs rustc-dev component (i.e. internal rlibs) needed to link to compiler internals for (e.g.) crubit
+ # Not required for general use, installs rustc-dev component (i.e. internal rlibs)
+ # needed to link to compiler internals for (e.g.) crubit
use rustc-dev && DESTDIR="${D}" "${EPYTHON}" ./x.py install rustc-dev -v \
--config="${S}"/bootstrap.toml -j$(get_makeopts_jobs) || die
--
2.56.0
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads