From 378ba69978967a4c2eb8b39905a05c965969c82d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 Oct 2019 21:14:22 +0200 Subject: Fix system argument for suppressing warnings from system packages --- extras/autowaf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extras/autowaf.py') diff --git a/extras/autowaf.py b/extras/autowaf.py index 2ceb014..678dfe9 100644 --- a/extras/autowaf.py +++ b/extras/autowaf.py @@ -210,9 +210,9 @@ def check_pkg(conf, spec, **kwargs): args=args + ['--cflags', '--libs'], **kwargs) - if not conf.env.MSVC_COMPILER and 'system' in args and args['system']: + if not conf.env.MSVC_COMPILER and 'system' in kwargs and kwargs['system']: conf.system_include_paths.update( - conf.env['INCLUDES_' + nameify(args['uselib_store'])]) + conf.env['INCLUDES_' + nameify(kwargs['uselib_store'])]) def normpath(path): if sys.platform == 'win32': -- cgit v1.2.1