]> khamidou — GitHub mirrors - electron.git/commitdiff
Build with clang under Linux.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 31 Dec 2013 11:27:31 +0000 (11:27 +0000)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 31 Dec 2013 11:27:31 +0000 (11:27 +0000)
common.gypi
script/update.py

index f4c44832fd6d7788c823975bcf61cf9f3b55af52..08f80b92ecf62230847cef0ff3f180460869716b 100644 (file)
@@ -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")', {
       ],
       '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',
index 8c92f361e78ba688cbe0634463b391a34dbc066f..16e850ad450263b989d9634832d778e047fcd736 100755 (executable)
@@ -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'])