Update rust recipe to new rust

This commit is contained in:
Jeremy Soller 2019-04-18 22:01:40 -06:00
parent a41f930411
commit dbe058a901
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -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
}