diff options
author | David Robillard <d@drobilla.net> | 2020-06-21 17:38:08 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:06:22 +0200 |
commit | 8353731836d8a79265d93792d29b8b4550a8c09e (patch) | |
tree | 18d1d623fdf1dda57deb90d62a44414ca6772959 /wscript | |
parent | 16573e710c9481ede8b12f5c00127f8e8a975d02 (diff) | |
download | serd-8353731836d8a79265d93792d29b8b4550a8c09e.tar.gz serd-8353731836d8a79265d93792d29b8b4550a8c09e.tar.bz2 serd-8353731836d8a79265d93792d29b8b4550a8c09e.zip |
Clean up includes
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -44,6 +44,9 @@ def configure(conf): conf.load('autowaf', cache=True) autowaf.set_c_lang(conf, 'c99') + if Options.options.strict and not conf.env.MSVC_COMPILER: + conf.env.append_unique('CFLAGS', '-Wno-cast-align') + conf.env.update({ 'BUILD_UTILS': not Options.options.no_utils, 'BUILD_SHARED': not Options.options.no_shared, @@ -212,6 +215,11 @@ def lint(ctx): "../src/*.c") subprocess.call(cmd, cwd='build', shell=True) + try: + subprocess.call(["iwyu_tool.py", "-o", "clang", "-p", "build"]) + except Exception: + Logs.warn("Failed to call iwyu_tool.py") + def amalgamate(ctx): "builds single-file amalgamated source" |