diff options
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -55,6 +55,7 @@ def configure(conf): 'clang': [ '-Wno-cast-align', '-Wno-cast-qual', + '-Wno-conversion', '-Wno-covered-switch-default', '-Wno-disabled-macro-expansion', '-Wno-double-promotion', @@ -101,6 +102,11 @@ def configure(conf): if 'mingw' in conf.env.CC[0]: conf.env.append_value('CFLAGS', '-Wno-unused-macros') + if ('clang' in conf.env.CC[0] and ( + '-fsanitize=address' in conf.env.CFLAGS or + '-fsanitize=undefined' in conf.env.CFLAGS)): + conf.env.LINKFLAGS.remove('-Wl,--no-undefined') + conf.env.update({ 'BUILD_UTILS': not Options.options.no_utils, 'BUILD_SHARED': not Options.options.no_shared, |