libstd-rs: use a separate variable for --features

This will allow features to be easily modified through a bbappend file
in another layer.
This commit is contained in:
Steven Walter
2017-08-04 13:34:10 -04:00
parent b82e450b5a
commit 8b471a1bdc
2 changed files with 3 additions and 1 deletions

View File

@@ -11,6 +11,8 @@ RUSTFLAGS += "-L ${STAGING_LIBDIR} -C link-arg=-Wl,-soname,libstd.so"
S = "${RUSTSRC}/src/libstd"
CARGO_BUILD_FLAGS += "--features '${CARGO_FEATURES}'"
do_compile_prepend () {
export CARGO_TARGET_DIR="${B}"
# For Rust 1.13.0 and newer

View File

@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://../../COPYRIGHT;md5=99c369ad81a36cd5b27f6c6968d01055"
# Don't use jemalloc as it doesn't work for many targets.
# https://github.com/rust-lang/rust/pull/37392
CARGO_BUILD_FLAGS += "--features 'panic-unwind'"
CARGO_FEATURES ?= "panic-unwind"
# These are taken from src/libstd/Cargo.toml via cargo-bitbake
SRC_URI += " \