Merge pull request #48 from brightray/disable-linux-clang
Add flag to disable clang under Linux.
This commit is contained in:
commit
dc8c14f61f
2 changed files with 5 additions and 2 deletions
|
@ -88,7 +88,7 @@
|
||||||
],
|
],
|
||||||
'conditions': [
|
'conditions': [
|
||||||
['OS=="linux"', {
|
['OS=="linux"', {
|
||||||
'cflags': [
|
'cflags_cc': [
|
||||||
'-fno-rtti',
|
'-fno-rtti',
|
||||||
],
|
],
|
||||||
'link_settings': {
|
'link_settings': {
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
'mac_deployment_target%': '10.8',
|
'mac_deployment_target%': '10.8',
|
||||||
'mac_sdkroot%': 'macosx',
|
'mac_sdkroot%': 'macosx',
|
||||||
|
|
||||||
|
# Build with clang under Linux.
|
||||||
|
'linux_clang%': 1,
|
||||||
|
|
||||||
'win_release_RuntimeLibrary%': '2', # /MD (nondebug DLL)
|
'win_release_RuntimeLibrary%': '2', # /MD (nondebug DLL)
|
||||||
'win_debug_RuntimeLibrary%': '3', # /MTd (debug DLL)
|
'win_debug_RuntimeLibrary%': '3', # /MTd (debug DLL)
|
||||||
|
|
||||||
|
@ -189,7 +192,7 @@
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'conditions': [
|
'conditions': [
|
||||||
['OS=="linux"', {
|
['OS=="linux" and linux_clang==1', {
|
||||||
'make_global_settings': [
|
'make_global_settings': [
|
||||||
['CC', '/usr/bin/clang'],
|
['CC', '/usr/bin/clang'],
|
||||||
['CXX', '/usr/bin/clang++'],
|
['CXX', '/usr/bin/clang++'],
|
||||||
|
|
Loading…
Reference in a new issue