From: Cheng Zhao Date: Tue, 31 Dec 2013 11:27:31 +0000 (+0000) Subject: Build with clang under Linux. X-Git-Tag: v0.10.0~6^2~43 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=c64a79336427a7c8f7496c045d100eb97519e0fc;p=electron.git Build with clang under Linux. --- diff --git a/common.gypi b/common.gypi index f4c44832..08f80b92 100644 --- a/common.gypi +++ b/common.gypi @@ -2,7 +2,7 @@ 'variables': { 'clang': 0, 'conditions': [ - ['OS=="mac"', { + ['OS=="mac" or OS=="linux"', { 'clang': 1, }], ['OS=="win" and (MSVS_VERSION=="2012e" or MSVS_VERSION=="2010e")', { @@ -152,7 +152,9 @@ ], 'target_defaults': { 'cflags_cc': [ - '-std=c++11', + # Use gnu++11 instead of c++11 here, see: + # https://code.google.com/p/chromium/issues/detail?id=224515 + '-std=gnu++11', ], 'xcode_settings': { 'CC': '/usr/bin/clang', diff --git a/script/update.py b/script/update.py index 8c92f361..16e850ad 100755 --- a/script/update.py +++ b/script/update.py @@ -32,6 +32,7 @@ def update_gyp(): subprocess.call([python, gyp, '-f', 'ninja', '--depth', '.', 'atom.gyp', '-Icommon.gypi', '-Ivendor/brightray/brightray.gypi', + '-Dlinux_clang=0', # Disable brightray's clang setting '-Dtarget_arch={0}'.format(arch), '-Dlibrary=static_library'])