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:06:17 +0100 |
commit | 2226d3db15837f82dc617ed669ba329dc7abde31 (patch) | |
tree | 7920ccf4e2142c81a5a1aac950c7ad18c5cde4ad | |
parent | a4b23e131ea4b1338040ffe483253f507dba9058 (diff) | |
download | poky-2226d3db15837f82dc617ed669ba329dc7abde31.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.
(From OE-Core rev: 6d0603ffe18c1a5999db854abb668b05aff47f67)
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" | |||
8 | RUST_DEBUG_REMAP = "--remap-path-prefix=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" | 8 | RUST_DEBUG_REMAP = "--remap-path-prefix=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" |
9 | RUSTFLAGS += "${RUSTLIB} ${RUST_DEBUG_REMAP}" | 9 | RUSTFLAGS += "${RUSTLIB} ${RUST_DEBUG_REMAP}" |
10 | RUSTLIB_DEP ?= "libstd-rs" | 10 | RUSTLIB_DEP ?= "libstd-rs" |
11 | RUST_TARGET_PATH = "${STAGING_LIBDIR_NATIVE}/rustlib" | 11 | export RUST_TARGET_PATH = "${STAGING_LIBDIR_NATIVE}/rustlib" |
12 | RUST_PANIC_STRATEGY ?= "unwind" | 12 | RUST_PANIC_STRATEGY ?= "unwind" |
13 | 13 | ||
14 | # Native builds are not effected by TCLIBC. Without this, rust-native | 14 | # Native builds are not effected by TCLIBC. Without this, rust-native |