diff options
Diffstat (limited to 'meta/classes/cargo.bbclass')
-rw-r--r-- | meta/classes/cargo.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/cargo.bbclass b/meta/classes/cargo.bbclass index 539ff03ec7..2475d05b3d 100644 --- a/meta/classes/cargo.bbclass +++ b/meta/classes/cargo.bbclass | |||
@@ -4,6 +4,7 @@ | |||
4 | ## Cargo. | 4 | ## Cargo. |
5 | 5 | ||
6 | inherit cargo_common | 6 | inherit cargo_common |
7 | inherit rust-target-config | ||
7 | 8 | ||
8 | # the binary we will use | 9 | # the binary we will use |
9 | CARGO = "cargo" | 10 | CARGO = "cargo" |
@@ -40,7 +41,7 @@ BUILD_DIR = "${@['release', 'debug'][d.getVar('DEBUG_BUILD') == '1']}" | |||
40 | CARGO_TARGET_SUBDIR="${RUST_HOST_SYS}/${BUILD_DIR}" | 41 | CARGO_TARGET_SUBDIR="${RUST_HOST_SYS}/${BUILD_DIR}" |
41 | oe_cargo_build () { | 42 | oe_cargo_build () { |
42 | export RUSTFLAGS="${RUSTFLAGS}" | 43 | export RUSTFLAGS="${RUSTFLAGS}" |
43 | export RUST_TARGET_PATH="${RUST_TARGET_PATH}" | 44 | bbnote "Using rust targets from ${RUST_TARGET_PATH}" |
44 | bbnote "cargo = $(which ${CARGO})" | 45 | bbnote "cargo = $(which ${CARGO})" |
45 | bbnote "rustc = $(which ${RUSTC})" | 46 | bbnote "rustc = $(which ${RUSTC})" |
46 | bbnote "${CARGO} build ${CARGO_BUILD_FLAGS} $@" | 47 | bbnote "${CARGO} build ${CARGO_BUILD_FLAGS} $@" |