]> khamidou — GitHub mirrors - electron.git/commitdiff
Build for x64 architecture on OS X, fixes #132.
authorCheng Zhao <zcbenz@gmail.com>
Fri, 27 Dec 2013 06:17:35 +0000 (14:17 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 27 Dec 2013 06:17:35 +0000 (14:17 +0800)
script/update.py

index 8940cf77711426a7f120ec24d72e7f6d7e4e4b30..8c92f361e78ba688cbe0634463b391a34dbc066f 100755 (executable)
@@ -26,10 +26,14 @@ def update_gyp():
   python = sys.executable
   if sys.platform == 'cygwin':
     python = os.path.join('vendor', 'python_26', 'python.exe')
+  arch = 'ia32'
+  if sys.platform == 'darwin':
+    arch = 'x64'
   subprocess.call([python, gyp,
                    '-f', 'ninja', '--depth', '.', 'atom.gyp',
                    '-Icommon.gypi', '-Ivendor/brightray/brightray.gypi',
-                   '-Dtarget_arch=ia32', '-Dlibrary=static_library'])
+                   '-Dtarget_arch={0}'.format(arch),
+                   '-Dlibrary=static_library'])
 
 
 if __name__ == '__main__':