Skip to content

Commit

Permalink
backend/ninja: fix bad @OUTPUTn@ replacements
Browse files Browse the repository at this point in the history
`outfilelist` is the output list of the target, while `outfiles` is the output
list of the individual commands

Bug: mesonbuild/pull/13304#issuecomment-2226398671
  • Loading branch information
chubinou committed Aug 7, 2024
1 parent 43b80e0 commit a8c5f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/backend/ninjabackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -2623,7 +2623,7 @@ def generate_genlist_for_target(self, genlist: build.GeneratedList, target: buil
args = [x.replace('@DEPFILE@', depfile) for x in base_args]
args = [x.replace("@INPUT@", infilename).replace('@OUTPUT@', sole_output)
for x in args]
args = self.replace_outputs(args, self.get_target_private_dir(target), outfilelist)
args = self.replace_outputs(args, self.get_target_private_dir(target), outfiles)
# We have consumed output files, so drop them from the list of remaining outputs.
if len(generator.outputs) > 1:
outfilelist = outfilelist[len(generator.outputs):]
Expand Down

0 comments on commit a8c5f8d

Please sign in to comment.