only default to 64 bit build on darwin and 64bit linux

- maintains default to 32 bit on windows
This commit is contained in:
Dane Springmeyer 2014-07-31 10:20:33 -07:00
parent 978f73756b
commit 191b1aa719

View file

@ -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',