]> khamidou — GitHub mirrors - electron.git/commitdiff
only default to 64 bit build on darwin and 64bit linux
authorDane Springmeyer <dane@mapbox.com>
Thu, 31 Jul 2014 17:20:33 +0000 (10:20 -0700)
committerDane Springmeyer <dane@mapbox.com>
Thu, 31 Jul 2014 17:20:33 +0000 (10:20 -0700)
 - maintains default to 32 bit on windows

script/update.py

index 7c5a8893569055edaeb8790555d778c45aca0b61..62398d9a6affaf0916d473633d88354d249c3790 100755 (executable)
@@ -23,10 +23,11 @@ def update_external_binaries():
 def update_gyp():
   gyp = os.path.join('vendor', 'brightray', 'vendor', 'gyp', 'gyp_main.py')
   python = sys.executable
-  arch = 'x64'
+  arch = 'ia32'
+  if sys.platform.startswith('linux') and sys.maxsize > 2**32 or sys.platform == 'darwin':
+      arch = 'x64'
   if sys.platform in ['cygwin', 'win32']:
     python = os.path.join('vendor', 'python_26', 'python.exe')
-    arch = 'ia32'
   subprocess.call([python, gyp,
                    '-f', 'ninja', '--depth', '.', 'atom.gyp',
                    '-Icommon.gypi', '-Ivendor/brightray/brightray.gypi',