From: Alex Kiernan Date: Fri, 1 Dec 2023 18:34:19 +0000 (+0000) Subject: rust: Drop targets and hosts override magic X-Git-Tag: yocto-5.2~4422 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c93a71a9855cb0231d2f90f0412b6a49e3b1d99;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git rust: Drop targets and hosts override magic `targets` and `hosts` could be overridden prior to 0a01b5ab973e ("rust-cross-canadian: Simplify and fix"), that commit deleted this usage, remove the remnant of it from here. Signed-off-by: Alex Kiernan Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/rust/rust_1.70.0.bb b/meta/recipes-devtools/rust/rust_1.70.0.bb index 6a28dc926ed..3d176e54c15 100644 --- a/meta/recipes-devtools/rust/rust_1.70.0.bb +++ b/meta/recipes-devtools/rust/rust_1.70.0.bb @@ -154,13 +154,9 @@ python do_configure() { config.set("build", "vendor", e(True)) - if not "targets" in locals(): - targets = [d.getVar("RUST_TARGET_SYS")] - config.set("build", "target", e(targets)) + config.set("build", "target", e([d.getVar("RUST_TARGET_SYS")])) - if not "hosts" in locals(): - hosts = [d.getVar("RUST_HOST_SYS")] - config.set("build", "host", e(hosts)) + config.set("build", "host", e([d.getVar("RUST_HOST_SYS")])) # We can't use BUILD_SYS since that is something the rust snapshot knows # nothing about when trying to build some stage0 tools (like fabricate)