···1-diff -Naur a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py
2---- a/tools/gyp/pylib/gyp/xcode_emulation.py 2014-01-23 06:05:51.000000000 +0100
3-+++ b/tools/gyp/pylib/gyp/xcode_emulation.py 2014-02-04 17:49:48.000000000 +0100
4-@@ -1018,12 +1033,16 @@
05 # Since the value returned by this function is only used when ARCHS is not
6 # set, then on iOS we return "i386", as the default xcode project generator
7 # does not set ARCHS if it is not set in the .gyp file.
8- if self.isIOS:
9-+
10+ try:
11+ if self.isIOS:
12+ return 'i386'
···1+diff --git a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
2+index 30f27d5..eb178a5 100644
3+--- a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
4++++ b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
5+@@ -1018,12 +1018,15 @@ class XcodeSettings(object):
6 # Since the value returned by this function is only used when ARCHS is not
7 # set, then on iOS we return "i386", as the default xcode project generator
8 # does not set ARCHS if it is not set in the .gyp file.
9- if self.isIOS:
010+ try:
11+ if self.isIOS:
12+ return 'i386'
+10-13
pkgs/development/web/nodejs/no-xcode.patch
···1-diff -Naur a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py
2---- a/tools/gyp/pylib/gyp/xcode_emulation.py 2014-01-23 06:05:51.000000000 +0100
3-+++ b/tools/gyp/pylib/gyp/xcode_emulation.py 2014-02-04 17:49:48.000000000 +0100
4-@@ -302,10 +302,17 @@
056 def _XcodeSdkPath(self, sdk_root):
7 if sdk_root not in XcodeSettings._sdk_path_cache:
···19+ # the user is probably on a CLT-only system, where there
20+ # is no valid SDK root
21+ XcodeSettings._sdk_path_cache[sdk_root] = None
22-+
23 return XcodeSettings._sdk_path_cache[sdk_root]
2425 def _AppendPlatformVersionMinFlags(self, lst):
26-@@ -420,10 +427,12 @@
27 framework_root = sdk_root
28 else:
29 framework_root = ''
···31- framework_dirs = config.get('mac_framework_dirs', [])
32- for directory in framework_dirs:
33- cflags.append('-F' + directory.replace('$(SDKROOT)', framework_root))
34-+
35+ if 'SDKROOT' in self._Settings():
36+ config = self.spec['configurations'][self.configname]
37+ framework_dirs = config.get('mac_framework_dirs', [])
···4041 self.configname = None
42 return cflags
43-@@ -673,10 +682,12 @@
44 sdk_root = self._SdkPath()
45 if not sdk_root:
46 sdk_root = ''
···48- framework_dirs = config.get('mac_framework_dirs', [])
49- for directory in framework_dirs:
50- ldflags.append('-F' + directory.replace('$(SDKROOT)', sdk_root))
51-+
52+ if 'SDKROOT' in self._Settings():
53+ config = self.spec['configurations'][self.configname]
54+ framework_dirs = config.get('mac_framework_dirs', [])
55+ for directory in framework_dirs:
56+ ldflags.append('-F' + directory.replace('$(SDKROOT)', sdk_root))
5758- self.configname = None
59- return ldflags
60-@@ -863,7 +874,11 @@
61 sdk_root = self._SdkPath(config_name)
62 if not sdk_root:
63 sdk_root = ''
64- return l.replace('$(SDKROOT)', sdk_root)
65-+
66+ if self._SdkPath():
67+ return l.replace('$(SDKROOT)', sdk_root)
68+ else:
···1+diff --git a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py
2+index c002b11..eeb0400 100644
3+--- a/tools/gyp/pylib/gyp/xcode_emulation.py
4++++ b/tools/gyp/pylib/gyp/xcode_emulation.py
5+@@ -446,10 +446,16 @@ class XcodeSettings(object):
67 def _XcodeSdkPath(self, sdk_root):
8 if sdk_root not in XcodeSettings._sdk_path_cache:
···20+ # the user is probably on a CLT-only system, where there
21+ # is no valid SDK root
22+ XcodeSettings._sdk_path_cache[sdk_root] = None
023 return XcodeSettings._sdk_path_cache[sdk_root]
2425 def _AppendPlatformVersionMinFlags(self, lst):
26+@@ -572,10 +578,11 @@ class XcodeSettings(object):
27 framework_root = sdk_root
28 else:
29 framework_root = ''
···31- framework_dirs = config.get('mac_framework_dirs', [])
32- for directory in framework_dirs:
33- cflags.append('-F' + directory.replace('$(SDKROOT)', framework_root))
034+ if 'SDKROOT' in self._Settings():
35+ config = self.spec['configurations'][self.configname]
36+ framework_dirs = config.get('mac_framework_dirs', [])
···3940 self.configname = None
41 return cflags
42+@@ -826,10 +833,11 @@ class XcodeSettings(object):
43 sdk_root = self._SdkPath()
44 if not sdk_root:
45 sdk_root = ''
···47- framework_dirs = config.get('mac_framework_dirs', [])
48- for directory in framework_dirs:
49- ldflags.append('-F' + directory.replace('$(SDKROOT)', sdk_root))
050+ if 'SDKROOT' in self._Settings():
51+ config = self.spec['configurations'][self.configname]
52+ framework_dirs = config.get('mac_framework_dirs', [])
53+ for directory in framework_dirs:
54+ ldflags.append('-F' + directory.replace('$(SDKROOT)', sdk_root))
5556+ is_extension = self._IsIosAppExtension() or self._IsIosWatchKitExtension()
57+ if sdk_root and is_extension:
58+@@ -1032,7 +1040,10 @@ class XcodeSettings(object):
59 sdk_root = self._SdkPath(config_name)
60 if not sdk_root:
61 sdk_root = ''
62- return l.replace('$(SDKROOT)', sdk_root)
063+ if self._SdkPath():
64+ return l.replace('$(SDKROOT)', sdk_root)
65+ else: