diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2023-01-06 11:25:38 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2023-01-10 09:53:22 -0800 |
| commit | e268d9f1378fdcf0660bb3c980e08f978eb970d1 (patch) | |
| tree | 9f05174345f7155dc945eafe4c846a374975660c | |
| parent | 1f90873844b5fd505bf804eb99e81b46f6aa0977 (diff) | |
| download | meson-e268d9f1378fdcf0660bb3c980e08f978eb970d1.tar.gz | |
build: Add a found method to Executable
Again, this is necessary for polymorphism with ExternalProgram
| -rw-r--r-- | mesonbuild/build.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index a2ebb029d..ad3b4e4c5 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1913,6 +1913,10 @@ class Executable(BuildTarget): """Provides compatibility with ExternalProgram.""" return os.path.join(self.subdir, self.filename) + def found(self) -> bool: + """Provides compatibility with ExternalProgram.""" + return True + class StaticLibrary(BuildTarget): known_kwargs = known_stlib_kwargs |
