summaryrefslogtreecommitdiffstats
path: root/meta/classes/cargo.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/cargo.bbclass')
-rw-r--r--meta/classes/cargo.bbclass3
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
6inherit cargo_common 6inherit cargo_common
7inherit rust-target-config
7 8
8# the binary we will use 9# the binary we will use
9CARGO = "cargo" 10CARGO = "cargo"
@@ -40,7 +41,7 @@ BUILD_DIR = "${@['release', 'debug'][d.getVar('DEBUG_BUILD') == '1']}"
40CARGO_TARGET_SUBDIR="${RUST_HOST_SYS}/${BUILD_DIR}" 41CARGO_TARGET_SUBDIR="${RUST_HOST_SYS}/${BUILD_DIR}"
41oe_cargo_build () { 42oe_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} $@"