libffi/hostlibffi: force the binary to be python2.7, as by default osx don't have an alias for python2. This will allow the build system to use system python2.7 if brew python2 is not installed.

Closes #309
This commit is contained in:
Mathieu Virbel 2018-11-16 10:42:12 +01:00
parent 6f295fd23f
commit cfc9dc1c29
2 changed files with 4 additions and 2 deletions

View file

@ -42,7 +42,8 @@ class LibffiRecipe(Recipe):
"generate-darwin-source-and-headers.py",
"_generate-darwin-source-and-headers.py")
shprint(sh.touch, "generate-darwin-source-and-headers.py")
shprint(sh.python2, "_generate-darwin-source-and-headers.py", "--only-osx")
python27 = sh.Command("python2.7")
shprint(python27, "_generate-darwin-source-and-headers.py", "--only-osx")
shprint(sh.xcodebuild,
self.ctx.concurrent_xcodebuild,
"ONLY_ACTIVE_ARCH=NO",

View file

@ -31,7 +31,8 @@ class LibffiRecipe(Recipe):
"generate-darwin-source-and-headers.py",
"_generate-darwin-source-and-headers.py")
shprint(sh.touch, "generate-darwin-source-and-headers.py")
shprint(sh.python2, "_generate-darwin-source-and-headers.py", "--only-ios")
python27 = sh.Command("python2.7")
shprint(python27, "_generate-darwin-source-and-headers.py", "--only-ios")
shprint(sh.xcodebuild, self.ctx.concurrent_xcodebuild,
"ONLY_ACTIVE_ARCH=NO",
"ARCHS={}".format(arch.arch),