summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2023-03-31 07:26:32 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-04-04 13:11:50 +0100
commitd75a58d013935b590e1173e80b7891c21859bf0d (patch)
treea8407f781ef69e56fbca942dcfb5870ade5948c2 /meta/recipes-devtools/rust
parentcd9526df7306b3a5b43d521a721bbd039a99cdfd (diff)
downloadpoky-d75a58d013935b590e1173e80b7891c21859bf0d.tar.gz
rust: install llvm item only once
Otherwise it triggers a rebuild of llvm-dependent rust pieces every time rust_runx is called, lengthening the builds without need. (From OE-Core rev: aca6b29b508175da9f213b1c6dba5d02a15b8287) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust')
-rw-r--r--meta/recipes-devtools/rust/rust_1.67.1.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/rust/rust_1.67.1.bb b/meta/recipes-devtools/rust/rust_1.67.1.bb
index eecb05ae02..83f9bec68a 100644
--- a/meta/recipes-devtools/rust/rust_1.67.1.bb
+++ b/meta/recipes-devtools/rust/rust_1.67.1.bb
@@ -200,7 +200,7 @@ rust_runx () {
200 200
201 # Copy the natively built llvm-config into the target so we can run it. Horrible, 201 # Copy the natively built llvm-config into the target so we can run it. Horrible,
202 # but works! 202 # but works!
203 if [ ${RUST_ALTERNATE_EXE_PATH_NATIVE} != ${RUST_ALTERNATE_EXE_PATH} ]; then 203 if [ ${RUST_ALTERNATE_EXE_PATH_NATIVE} != ${RUST_ALTERNATE_EXE_PATH} -a ! -f ${RUST_ALTERNATE_EXE_PATH} ]; then
204 mkdir -p `dirname ${RUST_ALTERNATE_EXE_PATH}` 204 mkdir -p `dirname ${RUST_ALTERNATE_EXE_PATH}`
205 cp ${RUST_ALTERNATE_EXE_PATH_NATIVE} ${RUST_ALTERNATE_EXE_PATH} 205 cp ${RUST_ALTERNATE_EXE_PATH_NATIVE} ${RUST_ALTERNATE_EXE_PATH}
206 chrpath -d ${RUST_ALTERNATE_EXE_PATH} 206 chrpath -d ${RUST_ALTERNATE_EXE_PATH}