Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed argument to cp that doesn't exist on macOS #1614

Merged
merged 1 commit into from
Jan 27, 2019
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: 5 additions & 3 deletions pythonforandroid/recipes/libffi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from os.path import exists, join
from pythonforandroid.recipe import Recipe
from pythonforandroid.logger import info, shprint
from pythonforandroid.util import current_directory
from pythonforandroid.util import current_directory, ensure_dir
from glob import glob
import sh

Expand Down Expand Up @@ -87,8 +87,10 @@ def build_arch(self, arch):
with current_directory(host_build):
shprint(cc, *cflags, _env=env)

shprint(sh.cp, '-t', self.ctx.get_libs_dir(arch.arch),
join(host_build, '.libs', 'libffi.so'))
ensure_dir(self.ctx.get_libs_dir(arch.arch))
shprint(sh.cp,
join(host_build, '.libs', 'libffi.so'),
self.ctx.get_libs_dir(arch.arch))

def get_include_dirs(self, arch):
return [join(self.get_build_dir(arch.arch), self.get_host(arch),
Expand Down