Advance list of output files so we do not generate same output files multiple times for different input.

pull/313/head
Jussi Pakkanen 9 years ago
parent 8e24e9e09a
commit c12719fa18
  1. 2
      ninjabackend.py

@ -1142,6 +1142,8 @@ rule FORTRAN_DEP_HACK
args = [x.replace("@INPUT@", infilename).replace('@OUTPUT@', sole_output)\
for x in base_args]
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.
outfilelist = outfilelist[len(generator.outputs):]
relout = self.get_target_private_dir(target)
args = [x.replace("@SOURCE_DIR@", self.build_to_src).replace("@BUILD_DIR@", relout)
for x in args]

Loading…
Cancel
Save