Flatten SharedLibary link_args.

pull/1735/head
Dylan Baker 8 years ago
parent c03744cccb
commit 410937c08e
  1. 4
      mesonbuild/build.py
  2. 2
      test cases/common/150 nested links/meson.build

@ -638,9 +638,7 @@ class BuildTarget(Target):
self.vala_gir = kwargs.get('vala_gir', None)
dlist = stringlistify(kwargs.get('d_args', []))
self.add_compiler_args('d', dlist)
self.link_args = kwargs.get('link_args', [])
if not isinstance(self.link_args, list):
self.link_args = [self.link_args]
self.link_args = flatten(kwargs.get('link_args', []))
for i in self.link_args:
if not isinstance(i, str):
raise InvalidArguments('Link_args arguments must be strings.')

@ -4,3 +4,5 @@ libxserver_dri3 = []
libxserver = [ libxserver_dri3 ]
executable('Xephyr', 'xephyr.c', link_with: [ libxserver ])
executable('Zephyr', 'xephyr.c', link_args: [[], []])

Loading…
Cancel
Save