mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
cd9526df73
commit
d75a58d013
@@ -200,7 +200,7 @@ rust_runx () {
|
|||||||
|
|
||||||
# Copy the natively built llvm-config into the target so we can run it. Horrible,
|
# Copy the natively built llvm-config into the target so we can run it. Horrible,
|
||||||
# but works!
|
# but works!
|
||||||
if [ ${RUST_ALTERNATE_EXE_PATH_NATIVE} != ${RUST_ALTERNATE_EXE_PATH} ]; then
|
if [ ${RUST_ALTERNATE_EXE_PATH_NATIVE} != ${RUST_ALTERNATE_EXE_PATH} -a ! -f ${RUST_ALTERNATE_EXE_PATH} ]; then
|
||||||
mkdir -p `dirname ${RUST_ALTERNATE_EXE_PATH}`
|
mkdir -p `dirname ${RUST_ALTERNATE_EXE_PATH}`
|
||||||
cp ${RUST_ALTERNATE_EXE_PATH_NATIVE} ${RUST_ALTERNATE_EXE_PATH}
|
cp ${RUST_ALTERNATE_EXE_PATH_NATIVE} ${RUST_ALTERNATE_EXE_PATH}
|
||||||
chrpath -d ${RUST_ALTERNATE_EXE_PATH}
|
chrpath -d ${RUST_ALTERNATE_EXE_PATH}
|
||||||
|
|||||||
Reference in New Issue
Block a user