From dbe058a90149ca1729f230982265e1cc9ac72120 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 18 Apr 2019 22:01:40 -0600 Subject: [PATCH] Update rust recipe to new rust --- recipes/rust/recipe.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/recipes/rust/recipe.sh b/recipes/rust/recipe.sh index 18a5ebbf7..05718cbe0 100644 --- a/recipes/rust/recipe.sh +++ b/recipes/rust/recipe.sh @@ -34,11 +34,9 @@ function recipe_clean { function recipe_stage { binpath="$1/bin" - libpath="$1/lib/rustlib/${TARGET}/lib" - mkdir -p "$binpath" "$libpath" - cp -fv "build/"*"/stage2-rustc/${TARGET}/release/rustc_binary" "$binpath/rustc" - cp -fv "build/"*"/stage2-tools/${TARGET}/release/rustdoc_tool_binary" "$binpath/rustdoc" - cp -fv $(find "build/"*"/stage2/lib/rustlib/${TARGET}/lib/" -type f | grep -v librustc) "$libpath" + libpath="$1/lib" + cp -frv "build/${TARGET}/stage2/bin" "$binpath" + cp -frv "build/${TARGET}/stage2/lib" "$libpath" ${STRIP} "$binpath/"* skip=1 }