From: Björn Jacke Date: Sat, 9 Feb 2019 00:33:13 +0000 (+0100) Subject: waf: fix WERROR_CFLAGS check X-Git-Tag: ldb-1.6.1~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=decba07b092791d0f17b44b9c2a595545a34d93b;p=thirdparty%2Fsamba.git 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 Reviewed-by: Andreas Schneider --- 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])