diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-17 16:47:23 +0200 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-12-29 23:22:14 -0500 |
| commit | c9635daeba4c7de7c4a230d6c9088f94f06ee8dc (patch) | |
| tree | 22ebdf9a6052ec0c7148115b8c5516aa210257c0 | |
| parent | a9d7e676e463a30741e9d0df1cfd837e6191df0d (diff) | |
| download | meson-c9635daeba4c7de7c4a230d6c9088f94f06ee8dc.tar.gz | |
ninjabackend: use File.from_built_relative()
Do not reinvent it in NinjaBackend.determine_ext_objs(), so as to use
the recently added caching of the results of File.from_built_relative().
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
| -rw-r--r-- | mesonbuild/backend/backends.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index d5bda3b42..fb912b1d8 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -883,8 +883,7 @@ class Backend: for gensrc in extobj.genlist: for r in gensrc.get_outputs(): path = self.get_target_generated_dir(extobj.target, gensrc, r) - dirpart, fnamepart = os.path.split(path) - raw_sources.append(File(True, dirpart, fnamepart)) + raw_sources.append(File.from_built_relative(path)) # Filter out headers and all non-source files sources: T.List['FileOrString'] = [] |
