Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pythonforandroid/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1649,6 +1649,10 @@ def get_recipe_env(self, arch, **kwargs):
)
realpython_dir = self.ctx.python_recipe.get_build_dir(arch.arch)

# maturin (used by every Rust recipe here) refuses to build without the
# target Android API level: "Failed to determine Android API level."
env["ANDROID_API_LEVEL"] = str(self.ctx.ndk_api)

env["RUSTFLAGS"] = "-Clink-args=-L{} -L{}".format(
self.ctx.get_libs_dir(arch.arch), join(realpython_dir, "android-build")
)
Expand Down
Loading