libstd-rs: use cargo_util_do_compile

This commit is contained in:
Steven Walter
2016-09-02 20:14:20 -04:00
committed by Steven Walter
parent f31f0c2257
commit e87b2d43b0
2 changed files with 1 additions and 5 deletions

View File

@@ -88,8 +88,6 @@ EOF
}
cargo_util_do_compile () {
cd "${B}"
# prevent cargo from trying to fetch down new data
mkdir -p "${WORKDIR}/cargo_home/registry/index/github.com-1ecc6299db9ec823"
touch "${WORKDIR}/cargo_home/registry/index/github.com-1ecc6299db9ec823/.cargo-index-lock"

View File

@@ -23,12 +23,10 @@ RUSTFLAGS += "-L ${STAGING_LIBDIR}"
B = "${WORKDIR}/build"
do_compile () {
do_compile_prepend () {
cd ${S}/src/rustc/std_shim
export CARGO_TARGET_DIR="${B}"
export RUSTC_BOOTSTRAP_KEY="e8edd0fd"
oe_cargo_fix_env
oe_cargo_build
}
do_install () {