summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
m---------waflib0
-rw-r--r--wscript22
2 files changed, 21 insertions, 1 deletions
diff --git a/waflib b/waflib
-Subproject c87cc53c643c60867665b333d5999fe07196d54
+Subproject 116a28fa5f92e58a46dc878751019ba74a61e54
diff --git a/wscript b/wscript
index 872278d..43758a8 100644
--- a/wscript
+++ b/wscript
@@ -26,9 +26,29 @@ def options(opt):
def configure(conf):
conf.load('compiler_cxx', cache=True)
conf.load('autowaf', cache=True)
- autowaf.set_c_lang(conf, 'c99')
autowaf.set_cxx_lang(conf, 'c++11')
+ if Options.options.ultra_strict:
+ autowaf.add_compiler_flags(conf.env, 'cxx', {
+ 'clang': [
+ '-Wno-padded',
+ '-Wno-weak-vtables',
+ ],
+ 'gcc': [
+ '-Wno-multiple-inheritance',
+ '-Wno-padded',
+ '-Wno-useless-cast',
+ ],
+ 'msvc': [
+ '/wd4514', # unreferenced inline function removed
+ '/wd4625', # copy constructor implicitly deleted
+ '/wd4626', # assignment operator implicitly deleted
+ '/wd4706', # assignment within conditional expression
+ '/wd5026', # move constructor implicitly deleted
+ '/wd5027', # move assignment operator implicitly deleted
+ ]
+ })
+
if conf.env.DEST_OS == 'darwin':
conf.check(framework_name='CoreServices')
conf.env.FRAMEWORK_RAUL = ['CoreServices']