mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
Merge pull request #6104 from jameshilliard/target-host-env
rust: cleaner rust target-applies-to-host fix
This commit is contained in:
commit
b725090127
@ -51,8 +51,8 @@ if [ "${HOSTTYPE}" = "${TARGET_ARCH}" ]; then
|
||||
# by the cross compiler. Read more here.
|
||||
# https://doc.rust-lang.org/cargo/reference/unstable.html#target-applies-to-host
|
||||
export __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly"
|
||||
export CARGO_UNSTABLE_TARGET_APPLIES_TO_HOST="true"
|
||||
export CARGO_TARGET_APPLIES_TO_HOST="false"
|
||||
export CARGO_Z_TARGET_APPLIES_TO_HOST="-Z target-applies-to-host"
|
||||
fi
|
||||
export PATH="${CARGO_HOME}/bin:${PATH}"
|
||||
export PKG_CONFIG_ALLOW_CROSS="1"
|
||||
|
@ -14,7 +14,6 @@ PKG_TOOLCHAIN="manual"
|
||||
make_target() {
|
||||
. "$(get_build_dir rust)/cargo/env"
|
||||
cargo build \
|
||||
${CARGO_Z_TARGET_APPLIES_TO_HOST} \
|
||||
--release \
|
||||
--locked \
|
||||
--all-features
|
||||
|
@ -25,7 +25,6 @@ PKG_MAINTAINER="Anton Voyl (awiouy)"
|
||||
make_target() {
|
||||
. $(get_build_dir rust)/cargo/env
|
||||
cargo build \
|
||||
${CARGO_Z_TARGET_APPLIES_TO_HOST} \
|
||||
--release \
|
||||
--no-default-features \
|
||||
--features "alsa-backend pulseaudio-backend with-dns-sd"
|
||||
|
Loading…
x
Reference in New Issue
Block a user