diff options
author | David Robillard <d@drobilla.net> | 2020-07-05 15:01:15 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-05 18:47:39 +0200 |
commit | 80838668aea1b53cc4438a63bb9f0fcab80cd3f7 (patch) | |
tree | 07b6cb1c0273e508985a84e1795125558810cfa6 /wscript | |
parent | 98f8d255a8aeece754dcda389aafb75572e8edb8 (diff) | |
download | pugl-80838668aea1b53cc4438a63bb9f0fcab80cd3f7.tar.gz pugl-80838668aea1b53cc4438a63bb9f0fcab80cd3f7.tar.bz2 pugl-80838668aea1b53cc4438a63bb9f0fcab80cd3f7.zip |
Update autowaf
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -65,7 +65,7 @@ def configure(conf): if Options.options.ultra_strict: # All warnings enabled by autowaf, disable some we trigger - conf.add_compiler_flags('*', { + autowaf.add_compiler_flags(conf.env, '*', { 'clang': [ '-Wno-padded', '-Wno-reserved-id-macro', @@ -73,7 +73,6 @@ def configure(conf): ], 'gcc': [ '-Wno-padded', - '-Wno-switch-default', '-Wno-switch-enum', ], 'msvc': [ @@ -84,7 +83,7 @@ def configure(conf): ], }) - conf.add_compiler_flags('c', { + autowaf.add_compiler_flags(conf.env, 'c', { 'clang': [ '-Wno-bad-function-cast', '-Wno-float-equal', @@ -102,10 +101,8 @@ def configure(conf): ], }) - conf.add_compiler_flags('cxx', { + autowaf.add_compiler_flags(conf.env, 'cxx', { 'clang': [ - '-Wno-c++98-compat', - '-Wno-c++98-compat-pedantic', '-Wno-documentation-unknown-command', '-Wno-old-style-cast', ], @@ -124,14 +121,14 @@ def configure(conf): # Add some platform-specific warning suppressions if conf.env.TARGET_PLATFORM == "win32": - conf.add_compiler_flags('*', { + autowaf.add_compiler_flags(conf.env, '*', { 'gcc': ['-Wno-cast-function-type', '-Wno-conversion', '-Wno-format', '-Wno-suggest-attribute=format'], }) elif conf.env.TARGET_PLATFORM == 'darwin': - conf.add_compiler_flags('*', { + autowaf.add_compiler_flags(conf.env, '*', { 'clang': ['-DGL_SILENCE_DEPRECATION', '-Wno-deprecated-declarations', '-Wno-direct-ivar-access'], |