Fix single output generators.

pull/313/head
Jussi Pakkanen 9 years ago
parent 324a262680
commit 24f35d0425
  1. 3
      ninjabackend.py

@ -1143,7 +1143,8 @@ rule FORTRAN_DEP_HACK
for x in base_args] for x in base_args]
args = self.replace_outputs(args, self.get_target_private_dir_abs(target), outfilelist) args = self.replace_outputs(args, self.get_target_private_dir_abs(target), outfilelist)
# We have consumed output files, so drop them from the list of remaining outputs. # We have consumed output files, so drop them from the list of remaining outputs.
outfilelist = outfilelist[len(generator.outputs):] if sole_output == '':
outfilelist = outfilelist[len(generator.outputs):]
relout = self.get_target_private_dir(target) relout = self.get_target_private_dir(target)
args = [x.replace("@SOURCE_DIR@", self.build_to_src).replace("@BUILD_DIR@", relout) args = [x.replace("@SOURCE_DIR@", self.build_to_src).replace("@BUILD_DIR@", relout)
for x in args] for x in args]

Loading…
Cancel
Save