Add flag to disable clang under Linux.

This commit is contained in:
Cheng Zhao 2013-12-31 11:09:24 +00:00
parent 37679214d1
commit 13f816b4bb
2 changed files with 10 additions and 3 deletions

View file

@ -88,7 +88,7 @@
],
'conditions': [
['OS=="linux"', {
'cflags': [
'cflags_cc': [
'-fno-rtti',
],
'link_settings': {

View file

@ -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',
'<!@(pkg-config --cflags gtk+-2.0)',
],
@ -189,7 +191,7 @@
],
},
'conditions': [
['OS=="linux"', {
['OS=="linux" and linux_clang==1', {
'make_global_settings': [
['CC', '/usr/bin/clang'],
['CXX', '/usr/bin/clang++'],
@ -198,6 +200,11 @@
['CXX.host', '$(CXX)'],
['LINK.host', '$(LINK)'],
],
'target_defaults': {
'cflags_cc': [
'-std=gnu++11',
],
},
}],
['OS=="win"', {
'target_defaults': {