diff --git a/recipes/rust/recipe.sh b/recipes/rust/recipe.sh index 18a5ebbf7e9de8ba0c8f555e3f87c2ec341a4f60..05718cbe0e00575d421abfa5ce4f57db583a2928 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 }