build: Add a found method to Executable

Again, this is necessary for polymorphism with ExternalProgram
pull/11274/head
Dylan Baker 2 years ago
parent 1f90873844
commit e268d9f137
  1. 4
      mesonbuild/build.py

@ -1913,6 +1913,10 @@ class Executable(BuildTarget):
"""Provides compatibility with ExternalProgram.""" """Provides compatibility with ExternalProgram."""
return os.path.join(self.subdir, self.filename) return os.path.join(self.subdir, self.filename)
def found(self) -> bool:
"""Provides compatibility with ExternalProgram."""
return True
class StaticLibrary(BuildTarget): class StaticLibrary(BuildTarget):
known_kwargs = known_stlib_kwargs known_kwargs = known_stlib_kwargs

Loading…
Cancel
Save