From 237a22fd170601b6ec6d4734b18119fb7af5a30d Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Wed, 14 Sep 2016 00:00:59 -0400 Subject: [PATCH] rust-cross: fix build where TARGET_ARCH and HOST_ARCH are the same By copying exactly the target we intend to. Fixes #77 --- recipes-devtools/rust/rust-cross.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-devtools/rust/rust-cross.bb b/recipes-devtools/rust/rust-cross.bb index 36c0bb3..c350014 100644 --- a/recipes-devtools/rust/rust-cross.bb +++ b/recipes-devtools/rust/rust-cross.bb @@ -40,7 +40,7 @@ do_compile () { do_install () { mkdir -p ${D}${prefix}/${base_libdir_native}/rustlib - cp ${WORKDIR}/targets/${TARGET_ARCH}* ${D}${prefix}/${base_libdir_native}/rustlib + cp ${WORKDIR}/targets/${TARGET_SYS}.json ${D}${prefix}/${base_libdir_native}/rustlib } rust_cross_sysroot_preprocess() {