mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 17:04:32 +04:00
rust: read build path from {HOST_}MAKE_PATH
Allow set build path by `{HOST_}MAKE_PATH`.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
committed by
Tianling Shen
parent
1000e99185
commit
84cb850b7f
@@ -44,7 +44,7 @@ define Host/Compile/Cargo
|
||||
--profile $(CARGO_HOST_PROFILE) \
|
||||
$(if $(RUST_HOST_FEATURES),--features "$(RUST_HOST_FEATURES)") \
|
||||
--root $(HOST_INSTALL_DIR) \
|
||||
--path "$(HOST_BUILD_DIR)/$(if $(strip $(1)),$(strip $(1)))" \
|
||||
--path "$(HOST_BUILD_DIR)/$(if $(strip $(1)),$(strip $(1)),$(strip $(HOST_MAKE_PATH)))" \
|
||||
$(if $(filter --jobserver%,$(HOST_JOBS)),,-j1) \
|
||||
$(CARGO_HOST_ARGS) \
|
||||
$(2)
|
||||
|
||||
@@ -45,7 +45,7 @@ define Build/Compile/Cargo
|
||||
--profile $(CARGO_PKG_PROFILE) \
|
||||
$(if $(strip $(RUST_PKG_FEATURES)),--features "$(strip $(RUST_PKG_FEATURES))") \
|
||||
--root $(PKG_INSTALL_DIR) \
|
||||
--path "$(PKG_BUILD_DIR)/$(if $(strip $(1)),$(strip $(1)))" \
|
||||
--path "$(PKG_BUILD_DIR)/$(if $(strip $(1)),$(strip $(1)),$(strip $(MAKE_PATH)))" \
|
||||
$(if $(filter --jobserver%,$(PKG_JOBS)),,-j1) \
|
||||
$(CARGO_PKG_ARGS) \
|
||||
$(2)
|
||||
|
||||
Reference in New Issue
Block a user