summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorTim Orling <ticotimo@gmail.com>2021-08-27 15:05:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-01 14:06:17 +0100
commit2226d3db15837f82dc617ed669ba329dc7abde31 (patch)
tree7920ccf4e2142c81a5a1aac950c7ad18c5cde4ad /meta/classes
parenta4b23e131ea4b1338040ffe483253f507dba9058 (diff)
downloadpoky-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>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/rust-common.bbclass2
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"
8RUST_DEBUG_REMAP = "--remap-path-prefix=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" 8RUST_DEBUG_REMAP = "--remap-path-prefix=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}"
9RUSTFLAGS += "${RUSTLIB} ${RUST_DEBUG_REMAP}" 9RUSTFLAGS += "${RUSTLIB} ${RUST_DEBUG_REMAP}"
10RUSTLIB_DEP ?= "libstd-rs" 10RUSTLIB_DEP ?= "libstd-rs"
11RUST_TARGET_PATH = "${STAGING_LIBDIR_NATIVE}/rustlib" 11export RUST_TARGET_PATH = "${STAGING_LIBDIR_NATIVE}/rustlib"
12RUST_PANIC_STRATEGY ?= "unwind" 12RUST_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