strip rustdoc as well

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

View File

@ -37,7 +37,7 @@ function recipe_stage {
libpath="$1/lib/rustlib/${TARGET}/lib"
mkdir -p "$binpath" "$libpath"
cp -fv "build/${TARGET}/stage2/bin/"* "$binpath"
${STRIP} "$binpath/rustc"
${STRIP} "$binpath/"*
cp -fv $(find build/*/stage2/lib/rustlib/${TARGET}/lib/ -type f | grep -v librustc) "$libpath"
skip=1
}