silence clang ‘unused include file/compiler flag’ warnings

This commit is contained in:
Robin Gareus 2014-10-23 02:59:47 +02:00
parent f5f7f87ab6
commit e2c6eb0ba1

View file

@ -217,6 +217,8 @@ def set_compiler_flags (conf,opt):
if conf.options.cxx11 or conf.env['build_host'] in [ 'mavericks', 'yosemite' ]:
conf.check_cxx(cxxflags=["-std=c++11"])
cxx_flags.append('-std=c++11')
c_flags.append('-Qunused-arguments')
cxx_flags.append('-Qunused-arguments')
if platform == "darwin":
cxx_flags.append('--stdlib=libstdc++')
# Mavericks and later changed the syntax to be used when including Carbon headers,