1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

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>
This commit is contained in:
Björn Jacke 2019-02-09 01:33:13 +01:00 committed by Bjoern Jacke
parent 6e72fe8450
commit decba07b09

View File

@ -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])