Skip to content
Merged
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
8 changes: 8 additions & 0 deletions pythonforandroid/recipes/kiwisolver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,13 @@ class KiwiSolverRecipe(PyProjectRecipe):
depends = ['cppy']
need_stl_shared = True

# from https://github.com/kivy/python-for-android/issues/3115
def get_recipe_env(self, arch, **kwargs):
env = super().get_recipe_env(arch, **kwargs)
flags = " -I" + self.ctx.python_recipe.include_root(arch.arch)
env["CFLAGS"] = flags
env["CPPFLAGS"] = flags
Comment on lines +15 to +16
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mriscoc I'm seeing this late, but why didn't we append the flags rather than overriding?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, that might be the reason macos runner might be failing. (Btw I am to blame for this)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well the recipe wasn't building anyway, so overall situation is better than the previous state.

return env


recipe = KiwiSolverRecipe()
Loading