Fix install rules

This commit is contained in:
Jeremy Soller 2018-12-16 15:15:25 -07:00
parent d475d54575
commit 12379a90b2
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -36,8 +36,9 @@ function recipe_stage {
binpath="$1/bin"
libpath="$1/lib/rustlib/${TARGET}/lib"
mkdir -p "$binpath" "$libpath"
cp -fv "build/${TARGET}/stage2/bin/"* "$binpath"
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"
${STRIP} "$binpath/"*
cp -fv $(find build/*/stage2/lib/rustlib/${TARGET}/lib/ -type f | grep -v librustc) "$libpath"
skip=1
}