build: Add a get_path method to Executable

This is needed to make Executable Polymorphic with ExternalProgram. This
can happen when a build program overrides a lookup.
pull/11274/head
Dylan Baker 2 years ago
parent ded57707c8
commit 1f90873844
  1. 5
      mesonbuild/build.py

@ -1909,6 +1909,11 @@ class Executable(BuildTarget):
"""
return self.outputs
def get_path(self) -> str:
"""Provides compatibility with ExternalProgram."""
return os.path.join(self.subdir, self.filename)
class StaticLibrary(BuildTarget):
known_kwargs = known_stlib_kwargs

Loading…
Cancel
Save