From: Dane Springmeyer Date: Thu, 31 Jul 2014 17:20:33 +0000 (-0700) Subject: only default to 64 bit build on darwin and 64bit linux X-Git-Tag: v0.15.2~8^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=191b1aa719c0519b349cb26d7e76182521da63b0;p=electron.git only default to 64 bit build on darwin and 64bit linux - maintains default to 32 bit on windows --- diff --git a/script/update.py b/script/update.py index 7c5a8893..62398d9a 100755 --- a/script/update.py +++ b/script/update.py @@ -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',