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:
parent
6e72fe8450
commit
decba07b09
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user