summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2019-02-09 01:33:13 +0100
committerBjoern Jacke <bjacke@samba.org>2019-02-17 13:33:14 +0100
commitdecba07b092791d0f17b44b9c2a595545a34d93b (patch)
treea512b246512220535feedb0dcf49cb77b5ea32e7 /buildtools
parent6e72fe8450d86fd6649dad7fbbc12655c36b0738 (diff)
downloadsamba-decba07b092791d0f17b44b9c2a595545a34d93b.tar.gz
waf: fix WERROR_CFLAGS check
if we found the right WERROR flags of the compiler then the compiler is right to fail because we explicitly give it an empty file to compile. We should not do that because that makes the almost successful test fail. This fixed the studio compiler test. Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/wscript3
1 files changed, 1 insertions, 2 deletions
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript
index 86293d347a1..75f24158600 100644
--- a/buildtools/wafsamba/wscript
+++ b/buildtools/wafsamba/wscript
@@ -308,8 +308,7 @@ def configure(conf):
"-qhalt=w", # IBM xlc
"-w2", # Tru64
]:
- if conf.CHECK_CFLAGS([f], '''
-'''):
+ if conf.CHECK_CFLAGS([f]):
if not 'WERROR_CFLAGS' in conf.env:
conf.env['WERROR_CFLAGS'] = []
conf.env['WERROR_CFLAGS'].extend([f])