Skip to content

Commit

Permalink
missing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jiri-otoupal committed Oct 12, 2024
1 parent f57b4bc commit 5f4448c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pythonforandroid/recipes/liblz4/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def build_arch(self, arch):
env = self.get_recipe_env(arch)
build_dir = self.get_build_dir(arch.arch)
lib_dir = self.ctx.get_libs_dir(arch.arch)
include_dir = join(self.ctx.get_python_install_dir(), 'include', 'lz4')
include_dir = join(self.ctx.get_python_install_dir(arch), 'include', 'lz4')

# Ensure include directory exists
if not os.path.exists(include_dir):
Expand Down
2 changes: 1 addition & 1 deletion pythonforandroid/recipes/lz4/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def get_recipe_env(self, arch):
ctx = self.ctx

# Include the headers from liblz4
lz4_include_dir = join(ctx.get_python_install_dir(), 'include', 'lz4')
lz4_include_dir = join(ctx.get_python_install_dir(arch), 'include', 'lz4')
env['CFLAGS'] += f' -I{lz4_include_dir}'

# Link against the liblz4 library
Expand Down

0 comments on commit 5f4448c

Please sign in to comment.