From 96814fe6068c41d96d9e002f64c881c018652e58 Mon Sep 17 00:00:00 2001 From: Steven Kabbes Date: Wed, 11 Mar 2015 16:00:13 -0700 Subject: [PATCH] build: fix cross-compiling for iOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously to build successfully for iOS, you needed to specify OS=mac at gyp time. This treats ios and mac as exactly the same. PR-URL: https://github.com/libuv/libuv/pull/262 Reviewed-By: Saúl Ibarra Corretgé --- uv.gyp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uv.gyp b/uv.gyp index 1ef8c05ad..b7eeff409 100644 --- a/uv.gyp +++ b/uv.gyp @@ -39,7 +39,7 @@ '_FILE_OFFSET_BITS=64', ], }], - ['OS == "mac"', { + ['OS in "mac ios"', { 'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ], }], ['OS == "linux"', { @@ -175,10 +175,10 @@ }], ], }], - [ 'OS in "linux mac android"', { + [ 'OS in "linux mac ios android"', { 'sources': [ 'src/unix/proctitle.c' ], }], - [ 'OS=="mac"', { + [ 'OS in "mac ios"', { 'sources': [ 'src/unix/darwin.c', 'src/unix/fsevents.c', @@ -261,7 +261,7 @@ 'libraries': [ '-lkvm' ], }, }], - [ 'OS in "mac freebsd dragonflybsd openbsd netbsd".split()', { + [ 'OS in "ios mac freebsd dragonflybsd openbsd netbsd".split()', { 'sources': [ 'src/unix/kqueue.c' ], }], ['uv_library=="shared_library"', {