aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
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"