Special-case Clang-only warning flags to Clang.

This commit is contained in:
Josh Haberman 2015-10-07 11:46:23 -07:00
parent 30cbd4c561
commit d8814ed59e
2 changed files with 4 additions and 4 deletions

View File

@ -151,8 +151,10 @@ if __name__ == '__main__':
warnings_as_errors = '--warnings_as_errors'
if cpp_impl in sys.argv:
sys.argv.remove(cpp_impl)
extra_compile_args = ['-Wno-write-strings', '-Wno-shorten-64-to-32',
'-Wno-invalid-offsetof']
extra_compile_args = ['-Wno-write-strings', '-Wno-invalid-offsetof']
if "clang" in os.popen('$CC --version').read():
extra_compile_args.append('-Wno-shorten-64-to-32')
if warnings_as_errors in sys.argv:
extra_compile_args.append('-Werror')

View File

@ -1,7 +1,5 @@
[tox]
envlist =
# cpp implementation on py34 is currently broken due to
# changes introduced by http://bugs.python.org/issue22079.
py{26,27,33,34}-{cpp,python}
[testenv]