summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/rust-source.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/rust/rust-source.inc')
-rw-r--r--meta/recipes-devtools/rust/rust-source.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/rust-source.inc b/meta/recipes-devtools/rust/rust-source.inc
index 838544e089..40fc237a62 100644
--- a/meta/recipes-devtools/rust/rust-source.inc
+++ b/meta/recipes-devtools/rust/rust-source.inc
@@ -13,6 +13,17 @@ SRC_URI[rust.sha256sum] = "7b11d4242dab0921a7d54758ad3fe805153c979c144625fecde11
13 13
14RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src" 14RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src"
15 15
16#After updating to Rust 1.85 we can revert this removal of "src/gcc"
17remove_gcc_directory() {
18 # Ensure the gcc directory exists
19 gcc_dir="${S}/src/gcc"
20 if [ -d "$gcc_dir" ]; then
21 rm -rf "$gcc_dir"
22 fi
23}
24# Add postfunc to the do_unpack task
25do_unpack[postfuncs] += "remove_gcc_directory"
26
16UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html" 27UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html"
17UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src" 28UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src"
18 29