[Buildroot] [PATCH 1/1] package/pkg-cargo.mk: enable -Z target-applies-to-host via env
James Hilliard
james.hilliard1 at gmail.com
Sun Jan 9 08:47:32 UTC 2022
This should be more reliable and fix the host == target bug when
doing indirect invocations using the cargo env.
Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
---
package/pkg-cargo.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/pkg-cargo.mk b/package/pkg-cargo.mk
index 47ae86bfae..b6cb65c4f0 100644
--- a/package/pkg-cargo.mk
+++ b/package/pkg-cargo.mk
@@ -27,6 +27,7 @@
PKG_CARGO_ENV = \
CARGO_HOME=$(HOST_DIR)/share/cargo \
__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly" \
+ CARGO_UNSTABLE_TARGET_APPLIES_TO_HOST="true" \
CARGO_TARGET_APPLIES_TO_HOST="false"
################################################################################
@@ -88,7 +89,6 @@ define $(2)_BUILD_CMDS
$$(if $$(BR2_ENABLE_DEBUG),--debug,--release) \
--manifest-path Cargo.toml \
--locked \
- -Z target-applies-to-host \
$$($(2)_CARGO_BUILD_OPTS)
endef
else # ifeq ($(4),target)
--
2.25.1
More information about the buildroot
mailing list