Skip to content

Commit c9635da

Browse files
bonzinieli-schwartz
authored andcommitted
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>
1 parent a9d7e67 commit c9635da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mesonbuild/backend/backends.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,8 +883,7 @@ def _determine_ext_objs(self, extobj: 'build.ExtractedObjects', proj_dir_to_buil
883883
for gensrc in extobj.genlist:
884884
for r in gensrc.get_outputs():
885885
path = self.get_target_generated_dir(extobj.target, gensrc, r)
886-
dirpart, fnamepart = os.path.split(path)
887-
raw_sources.append(File(True, dirpart, fnamepart))
886+
raw_sources.append(File.from_built_relative(path))
888887

889888
# Filter out headers and all non-source files
890889
sources: T.List['FileOrString'] = []

0 commit comments

Comments
 (0)