diff --git a/brightray/brightray.gyp b/brightray/brightray.gyp index a4baef81f6f..9504a57786f 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 e2deae347a8..daf5f2737cf 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) @@ -189,7 +192,7 @@ ], }, 'conditions': [ - ['OS=="linux"', { + ['OS=="linux" and linux_clang==1', { 'make_global_settings': [ ['CC', '/usr/bin/clang'], ['CXX', '/usr/bin/clang++'],