test extra paths: add extra paths for all build targets

pull/3134/head
Mathieu Duponchelle 7 years ago committed by Nirbheek Chauhan
parent bd2cc39f26
commit b3feff3032
  1. 4
      mesonbuild/backend/backends.py

@ -574,7 +574,7 @@ class Backend:
tests.'''
result = []
prospectives = []
if isinstance(target, build.Executable):
if isinstance(target, build.BuildTarget):
prospectives = target.get_transitive_link_deps()
# External deps
for deppath in self.rpaths_for_bundled_shared_libraries(target):
@ -625,7 +625,7 @@ class Backend:
for a in t.cmd_args:
if hasattr(a, 'held_object'):
a = a.held_object
if isinstance(a, build.Executable):
if isinstance(a, build.BuildTarget):
extra_paths += self.determine_windows_extra_paths(a, [])
if isinstance(a, mesonlib.File):
a = os.path.join(self.environment.get_build_dir(), a.rel_to_builddir(self.build_to_src))

Loading…
Cancel
Save