···11+diff -Naur a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py
22+--- a/tools/gyp/pylib/gyp/xcode_emulation.py 2014-01-23 06:05:51.000000000 +0100
33++++ b/tools/gyp/pylib/gyp/xcode_emulation.py 2014-02-04 17:49:48.000000000 +0100
44+@@ -1018,12 +1033,16 @@
55+ # Since the value returned by this function is only used when ARCHS is not
66+ # set, then on iOS we return "i386", as the default xcode project generator
77+ # does not set ARCHS if it is not set in the .gyp file.
88+- if self.isIOS:
99++
1010++ try:
1111++ if self.isIOS:
1212++ return 'i386'
1313++ version, build = self._XcodeVersion()
1414++ if version >= '0500':
1515++ return 'x86_64'
1616+ return 'i386'
1717+- version, build = self._XcodeVersion()
1818+- if version >= '0500':
1919++ except:
2020+ return 'x86_64'
2121+- return 'i386'
2222+2323+ class MacPrefixHeader(object):
2424+ """A class that helps with emulating Xcode's GCC_PREFIX_HEADER feature.
···70707171 def AdjustLibraries(self, libraries, config_name=None):
7272 """Transforms entries like 'Cocoa.framework' in libraries into entries like
7373-@@ -1018,12 +1033,16 @@
7474- # Since the value returned by this function is only used when ARCHS is not
7575- # set, then on iOS we return "i386", as the default xcode project generator
7676- # does not set ARCHS if it is not set in the .gyp file.
7777-- if self.isIOS:
7878-+
7979-+ try:
8080-+ if self.isIOS:
8181-+ return 'i386'
8282-+ version, build = self._XcodeVersion()
8383-+ if version >= '0500':
8484-+ return 'x86_64'
8585- return 'i386'
8686-- version, build = self._XcodeVersion()
8787-- if version >= '0500':
8888-+ except:
8989- return 'x86_64'
9090-- return 'i386'
9191-9292- class MacPrefixHeader(object):
9393- """A class that helps with emulating Xcode's GCC_PREFIX_HEADER feature.