Skip to content

Commit 16008f9

Browse files
committed
Fix LibffiRecipe.get_include_dirs for arch=None
1 parent d07f168 commit 16008f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pythonforandroid/recipes/libffi/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ def build_arch(self, arch):
3535
shprint(sh.make, '-j', str(cpu_count()), 'libffi.la', _env=env)
3636

3737
def get_include_dirs(self, arch):
38+
if arch is None:
39+
arch = self.filtered_archs[0]
3840
return [join(self.get_build_dir(arch.arch), 'include')]
3941

4042

0 commit comments

Comments
 (0)