From 0aa57854cad9363180bf4b44683e23d7935dc9ec Mon Sep 17 00:00:00 2001 From: mittorn Date: Sat, 28 Sep 2019 04:36:08 +0700 Subject: [PATCH] waf: fix unwanted required_flags modification --- wscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wscript b/wscript index 2fcbe0b3..010b511c 100644 --- a/wscript +++ b/wscript @@ -68,16 +68,16 @@ def options(opt): def filter_cflags(conf, flags, required_flags, cxx): supported_flags = [] - required_flags += ['-Werror'] + check_flags = required_flags + ['-Werror'] conf.msg('Detecting supported flags for %s' % ('C++' if cxx else 'C'),'...') for flag in flags: conf.start_msg('Checking for %s' % flag) try: if cxx: - conf.check_cxx(cxxflags = [flag] + required_flags) + conf.check_cxx(cxxflags = [flag] + check_flags) else: - conf.check_cc(cflags = [flag] + required_flags) + conf.check_cc(cflags = [flag] + check_flags) except conf.errors.ConfigurationError: conf.end_msg('no', color='YELLOW') else: