rust.inc: cut build time in half
Don't tar everything up just to untar it again. This literally takes longer than actually building the rust compiler
This commit is contained in:
@@ -468,17 +468,14 @@ rust_runx () {
|
|||||||
|
|
||||||
do_compile () {
|
do_compile () {
|
||||||
rust_runx build
|
rust_runx build
|
||||||
rust_runx dist
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rust_do_install () {
|
rust_do_install () {
|
||||||
# Only install compiler generated for the HOST_SYS. There will be
|
mkdir -p ${D}${bindir}
|
||||||
# one for SNAPSHOT_BUILD_SYS as well.
|
cp build/${HOST_SYS}/stage2/bin/* ${D}${bindir}
|
||||||
local installer=build/tmp/dist/rustc-${PV}-${HOST_SYS}/install.sh
|
|
||||||
${installer} --destdir="${D}" --prefix="${prefix}" --disable-ldconfig
|
|
||||||
|
|
||||||
installer=build/tmp/dist/rust-std-${PV}-${HOST_SYS}/install.sh
|
mkdir -p ${D}${libdir}/rustlib
|
||||||
${installer} --destdir="${D}" --prefix="${prefix}" --disable-ldconfig
|
cp -pRd build/${HOST_SYS}/stage2/lib/* ${D}${libdir}
|
||||||
|
|
||||||
# Install our custom target.json files
|
# Install our custom target.json files
|
||||||
local td="${D}${libdir}/rustlib/"
|
local td="${D}${libdir}/rustlib/"
|
||||||
@@ -486,12 +483,6 @@ rust_do_install () {
|
|||||||
for tgt in "${WORKDIR}/targets/"* ; do
|
for tgt in "${WORKDIR}/targets/"* ; do
|
||||||
install -m 0644 "$tgt" "$td"
|
install -m 0644 "$tgt" "$td"
|
||||||
done
|
done
|
||||||
|
|
||||||
# cleanup after rust-installer since we don't need these bits
|
|
||||||
rm ${D}/${libdir}/rustlib/install.log
|
|
||||||
rm ${D}/${libdir}/rustlib/rust-installer-version
|
|
||||||
rm ${D}/${libdir}/rustlib/uninstall.sh
|
|
||||||
rm ${D}/${libdir}/rustlib/components
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user