Fix stage function in rust recipe

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

View File

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