From 191b1aa719c0519b349cb26d7e76182521da63b0 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 31 Jul 2014 10:20:33 -0700 Subject: [PATCH] only default to 64 bit build on darwin and 64bit linux - maintains default to 32 bit on windows --- script/update.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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', -- 2.43.0