From 3ee95ecad242142a4f5f7d0b7ad8aec20e980596 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jeremy@system76.com>
Date: Sat, 15 Dec 2018 10:22:00 -0700
Subject: [PATCH] Fix stage function in rust recipe

---
 recipes/rust/recipe.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes/rust/recipe.sh b/recipes/rust/recipe.sh
index e34375a35..43493a798 100644
--- a/recipes/rust/recipe.sh
+++ b/recipes/rust/recipe.sh
@@ -36,8 +36,8 @@ function recipe_stage {
     binpath="$1/bin"
     libpath="$1/lib/rustlib/${TARGET}/lib"
     mkdir -p "$binpath" "$libpath"
-    cp -fv "build/${TARGET}/stage2/bin/rustc" "$binpath"
+    cp -fv "build/${TARGET}/stage2/bin/"* "$binpath"
     ${STRIP} "$binpath/rustc"
-    cp -fv $(find build/${TARGET}/stage2/lib/rustlib/${TARGET}/lib/ -type f | grep -v librustc) "$libpath"
+    cp -fv $(find build/*/stage2/lib/rustlib/${TARGET}/lib/ -type f | grep -v librustc) "$libpath"
     skip=1
 }
-- 
GitLab