From f235b814c3a60095e2a086ef5e8b1d775318415d Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 2 Jun 2022 16:05:49 -0700 Subject: build: Fix annotations for CustomTarget and fix a bug in the backend that the correct annotations uncover --- mesonbuild/backend/backends.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mesonbuild/backend/backends.py') diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 682e83f..0ccb6cd 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -1299,6 +1299,10 @@ class Backend: elif isinstance(i, build.ExtractedObjects): outputs = i.get_outputs(self) fname = self.get_extracted_obj_paths(i.target, outputs) + elif isinstance(i, programs.ExternalProgram): + assert i.found(), "This shouldn't be possible" + assert i.path is not None, 'for mypy' + fname = [i.path] else: fname = [i.rel_to_builddir(self.build_to_src)] if target.absolute_paths: -- cgit v1.1