diff options
author | Tim Orling <ticotimo@gmail.com> | 2021-08-27 15:05:45 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-01 14:05:41 +0100 |
commit | 6d0603ffe18c1a5999db854abb668b05aff47f67 (patch) | |
tree | 66e485fa43e115a311632e55b2e545ced0737d63 | |
parent | e35205a9803692d72eb92b86d740821c667b527e (diff) | |
download | openembedded-core-contrib-6d0603ffe18c1a5999db854abb668b05aff47f67.tar.gz |
rust-common.bbclass: export RUST_TARGET_PATH
Running 'rustc --print <foo>' in -c devshell environment
the target specifications are not known, unless the
RUST_TARGET_PATH (absolute path to rustlib/) is defined.
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/rust-common.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/rust-common.bbclass b/meta/classes/rust-common.bbclass index 8bed60f2ce..e1bc0193c3 100644 --- a/meta/classes/rust-common.bbclass +++ b/meta/classes/rust-common.bbclass @@ -8,7 +8,7 @@ RUSTLIB = "-L ${STAGING_LIBDIR}/rust" RUST_DEBUG_REMAP = "--remap-path-prefix=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" RUSTFLAGS += "${RUSTLIB} ${RUST_DEBUG_REMAP}" RUSTLIB_DEP ?= "libstd-rs" -RUST_TARGET_PATH = "${STAGING_LIBDIR_NATIVE}/rustlib" +export RUST_TARGET_PATH = "${STAGING_LIBDIR_NATIVE}/rustlib" RUST_PANIC_STRATEGY ?= "unwind" # Native builds are not effected by TCLIBC. Without this, rust-native |