Fixes the `kwargs` handling.

As suggested by @jeandet.

Details:
https://github.com/mesonbuild/meson/pull/2529#pullrequestreview-72703268
pull/2529/head
Leif Middelschulte 7 years ago
parent a2478d4dab
commit cf759e529c
  1. 2
      mesonbuild/modules/qt.py

@ -129,7 +129,7 @@ class QtBaseModule:
moc_output = moc_gen.process_files('Qt{} moc header'.format(self.qt_version), moc_headers, state)
sources.append(moc_output)
if len(moc_sources) > 0:
arguments = [moc_extra_arguments, '@INPUT@', '-o', '@OUTPUT@']
arguments = moc_extra_arguments + ['@INPUT@', '-o', '@OUTPUT@']
moc_kwargs = {'output': '@BASENAME@.moc',
'arguments': arguments}
moc_gen = build.Generator([self.moc], moc_kwargs)

Loading…
Cancel
Save