From: Cheng Zhao Date: Fri, 27 Dec 2013 06:17:35 +0000 (+0800) Subject: Build for x64 architecture on OS X, fixes #132. X-Git-Tag: v0.8.0~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=a2522efb2560d1882b54850133c86370f1fa08a3;p=electron.git Build for x64 architecture on OS X, fixes #132. --- diff --git a/script/update.py b/script/update.py index 8940cf77..8c92f361 100755 --- a/script/update.py +++ b/script/update.py @@ -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__':