summaryrefslogtreecommitdiff
path: root/lang/python/python3-host.mk
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2023-10-08 20:24:38 +0800
committerJeffery To <jeffery.to@gmail.com>2023-10-11 15:50:24 +0800
commit29ca9797a66f7e4d2ae40d26b91f3d1c2982a744 (patch)
treeefcd6638efde591c3656720f9fc35af8f8d66490 /lang/python/python3-host.mk
parent8bf2725f9be82eec0849cc5efe77bedeb0a693a0 (diff)
python-setuptools-rust: Set cargo profile from environment variable
This adds a patch (submitted upstream in https://github.com/PyO3/setuptools-rust/pull/364), to read the profile to pass to cargo from an environment variable. This also updates the Python include files to set the environment variable based on values from rust-values.mk. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python3-host.mk')
-rw-r--r--lang/python/python3-host.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/lang/python/python3-host.mk b/lang/python/python3-host.mk
index b233c5679..3cc20c2ce 100644
--- a/lang/python/python3-host.mk
+++ b/lang/python/python3-host.mk
@@ -78,7 +78,8 @@ HOST_PYTHON3_VARS = \
CFLAGS="$(HOST_CFLAGS)" \
CPPFLAGS="$(HOST_CPPFLAGS) -I$(HOST_PYTHON3_INC_DIR)" \
LDFLAGS="$(HOST_LDFLAGS) -lpython$(PYTHON3_VERSION) -Wl$(comma)-rpath$(comma)$(STAGING_DIR_HOSTPKG)/lib" \
- $(CARGO_HOST_CONFIG_VARS)
+ $(CARGO_HOST_CONFIG_VARS) \
+ SETUPTOOLS_RUST_CARGO_PROFILE="$(CARGO_HOST_PROFILE)"
# $(1) => directory of python script
# $(2) => python script and its arguments