mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-07 08:55:31 +01:00
fix for missing package name argument for 'pkg-config' call during fetching custom variables
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
This commit is contained in:
parent
4c3af52305
commit
53ab568fe5
@ -305,6 +305,16 @@ def exec_cfg(self, kw):
|
||||
for key, val in defi.items():
|
||||
lst.append('--define-variable=%s=%s' % (key, val))
|
||||
|
||||
static = False
|
||||
if 'args' in kw:
|
||||
args = Utils.to_list(kw['args'])
|
||||
if '--static' in args or '--static-libs' in args:
|
||||
static = True
|
||||
lst += args
|
||||
|
||||
# tools like pkgconf expect the package argument after the -- ones -_-
|
||||
lst.extend(Utils.to_list(kw['package']))
|
||||
|
||||
# retrieving variables of a module
|
||||
if 'variables' in kw:
|
||||
env = kw.get('env', self.env)
|
||||
@ -318,16 +328,6 @@ def exec_cfg(self, kw):
|
||||
kw['okmsg'] = 'yes'
|
||||
return
|
||||
|
||||
static = False
|
||||
if 'args' in kw:
|
||||
args = Utils.to_list(kw['args'])
|
||||
if '--static' in args or '--static-libs' in args:
|
||||
static = True
|
||||
lst += args
|
||||
|
||||
# tools like pkgconf expect the package argument after the -- ones -_-
|
||||
lst.extend(Utils.to_list(kw['package']))
|
||||
|
||||
# so we assume the command-line will output flags to be parsed afterwards
|
||||
ret = self.cmd_and_log(lst)
|
||||
if not 'okmsg' in kw:
|
||||
|
Loading…
Reference in New Issue
Block a user