From 13f816b4bb34344d262f72a3bb94b7ba1b7e5e96 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 31 Dec 2013 11:09:24 +0000 Subject: [PATCH] Add flag to disable clang under Linux. --- brightray/brightray.gyp | 2 +- brightray/brightray.gypi | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/brightray/brightray.gyp b/brightray/brightray.gyp index a4baef81f6f7..9504a57786f9 100644 --- a/brightray/brightray.gyp +++ b/brightray/brightray.gyp @@ -88,7 +88,7 @@ ], 'conditions': [ ['OS=="linux"', { - 'cflags': [ + 'cflags_cc': [ '-fno-rtti', ], 'link_settings': { diff --git a/brightray/brightray.gypi b/brightray/brightray.gypi index e2deae347a8a..27e13a6173ec 100644 --- a/brightray/brightray.gypi +++ b/brightray/brightray.gypi @@ -8,6 +8,9 @@ 'mac_deployment_target%': '10.8', 'mac_sdkroot%': 'macosx', + # Build with clang under Linux. + 'linux_clang%': 1, + 'win_release_RuntimeLibrary%': '2', # /MD (nondebug DLL) 'win_debug_RuntimeLibrary%': '3', # /MTd (debug DLL) @@ -176,7 +179,6 @@ }], ['OS=="linux"', { 'cflags_cc': [ - '-std=gnu++11', '-fno-rtti', '