Index: common.gypi |
=================================================================== |
--- a/common.gypi |
+++ b/common.gypi |
@@ -11,16 +11,23 @@ |
or OS=="netbsd" or OS=="android"', { |
'target_defaults': { |
'cflags': [ '-Wall', '-W', '-Wno-unused-parameter', |
'-Wnon-virtual-dtor', '-pthread', '-fno-rtti', |
'-pedantic', '-std=c++0x', '-fexceptions', ], |
'ldflags': [ '-pthread', ], |
}, |
}], |
+ ['OS=="mac"', { |
+ 'xcode_settings': { |
+ 'CLANG_CXX_LANGUAGE_STANDARD': 'c++0x', |
+ 'CLANG_CXX_LIBRARY': 'libstdc++', |
+ 'OTHER_CPLUSPLUSFLAGS' : ['-std=c++0x', '-stdlib=libstdc++'], |
+ }, |
+ }], |
['OS=="android"', { |
'target_defaults': { |
'cflags!': [ |
'-pthread', # Not supported by Android toolchain. |
], |
'ldflags!': [ |
'-pthread', # Not supported by Android toolchain. |
], |