Skip to content

Commit

Permalink
fix to support android cross compile on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
yichoi authored and eddyb committed Mar 25, 2014
1 parent 8bbf469 commit fc1f4de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gyp_uv.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ def run_gyp(args):
if not any(a.startswith('-Dcomponent=') for a in args):
args.append('-Dcomponent=static_library')

if sys.platform == 'darwin' and '-DOS=android' in sys.argv[1:]:
sys.platform='linux'

gyp_args = list(args)
print gyp_args
run_gyp(gyp_args)

0 comments on commit fc1f4de

Please sign in to comment.