aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-06-21 17:38:08 +0200
committerDavid Robillard <d@drobilla.net>2020-06-21 18:06:22 +0200
commit8353731836d8a79265d93792d29b8b4550a8c09e (patch)
tree18d1d623fdf1dda57deb90d62a44414ca6772959 /wscript
parent16573e710c9481ede8b12f5c00127f8e8a975d02 (diff)
downloadserd-8353731836d8a79265d93792d29b8b4550a8c09e.tar.gz
serd-8353731836d8a79265d93792d29b8b4550a8c09e.tar.bz2
serd-8353731836d8a79265d93792d29b8b4550a8c09e.zip
Clean up includes
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/wscript b/wscript
index b1d688ac..eb9495d0 100644
--- a/wscript
+++ b/wscript
@@ -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"