rust: drop custom target finding patch

We shouldn't need to patch rustc to find the target but instead pass the
full path to the target spec. This should solve #138.
This commit is contained in:
Doug Goldstein
2017-06-21 09:25:03 -05:00
parent 3e0f03d12a
commit 06a138a4a4
3 changed files with 2 additions and 107 deletions
+2
View File
@@ -56,12 +56,14 @@ cargo_do_configure () {
RUSTFLAGS ??= ""
CARGO_BUILD_FLAGS = "-v --target ${HOST_SYS} --release"
RUST_TARGET_PATH = "${STAGING_LIBDIR_NATIVE}/rustlib"
# This is based on the content of CARGO_BUILD_FLAGS and generally will need to
# change if CARGO_BUILD_FLAGS changes.
CARGO_TARGET_SUBDIR="${HOST_SYS}/release"
oe_cargo_build () {
export RUSTFLAGS="${RUSTFLAGS}"
export RUST_TARGET_PATH="${RUST_TARGET_PATH}"
bbnote "cargo = $(which cargo)"
bbnote "rustc = $(which rustc)"
bbnote "${CARGO} build ${CARGO_BUILD_FLAGS} $@"