From 985738b3991611be3b0b85e2b47cfb3ef0bbc335 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Wed, 13 Sep 2023 04:27:11 +0800 Subject: [PATCH] rust: Move RUST_ARCH_DEPENDS into rust-values.mk This allows other packages access to RUST_ARCH_DEPENDS by including rust-values.mk, instead of rust-package.mk which also sets Build/Compile. Signed-off-by: Jeffery To --- lang/rust/rust-package.mk | 3 --- lang/rust/rust-values.mk | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/rust/rust-package.mk b/lang/rust/rust-package.mk index 955b37c29e..e8cf7d7129 100644 --- a/lang/rust/rust-package.mk +++ b/lang/rust/rust-package.mk @@ -15,9 +15,6 @@ ifeq ($(origin RUST_INCLUDE_DIR),undefined) endif include $(RUST_INCLUDE_DIR)/rust-values.mk -# Support only a subset for now. -RUST_ARCH_DEPENDS:=@(aarch64||arm||i386||i686||mips||mipsel||mips64||mips64el||mipsel||powerpc64||riscv64||x86_64) - # $(1) path to the package (optional) # $(2) additional arguments to cargo (optional) define Build/Compile/Cargo diff --git a/lang/rust/rust-values.mk b/lang/rust/rust-values.mk index 26935c0f62..58ce2f16da 100644 --- a/lang/rust/rust-values.mk +++ b/lang/rust/rust-values.mk @@ -57,3 +57,6 @@ endif ifeq ($(ARCH),aarch64) RUST_CFLAGS:=-mno-outline-atomics endif + +# Support only a subset for now. +RUST_ARCH_DEPENDS:=@(aarch64||arm||i386||i686||mips||mipsel||mips64||mips64el||mipsel||powerpc64||riscv64||x86_64) -- 2.30.2