pkgconfig: Fix deprecation message (fixes #6720)

Deprecation warning was unable to display because of patch
c8f8d58273

fixes #6720
pull/6730/head
Stéphane Cerveau 5 years ago committed by Xavier Claessens
parent 79d04cebf7
commit 21e543fea8
  1. 3
      mesonbuild/modules/pkgconfig.py

@ -526,8 +526,7 @@ class PkgConfigModule(ExtensionModule):
for lib in deps.pub_libs:
if not isinstance(lib, str) and not hasattr(lib, 'generated_pc'):
lib.generated_pc = filebase
location = types.SimpleNamespace(subdir=state.subdir,
lineno=state.current_lineno)
location = state.current_node
lib.generated_pc_warn = [name, location]
return ModuleReturnValue(res, [res])

Loading…
Cancel
Save