diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-11-07 19:47:13 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-11-07 19:47:13 +0200 |
commit | c12719fa180fb6c999bd61e2dad15c438127a0e7 (patch) | |
tree | 8898d15b9d58a9031a176931b4daf3c1adcf1c94 | |
parent | 8e24e9e09a17f4a944e827503b50c1b5282c1fc6 (diff) | |
download | meson-c12719fa180fb6c999bd61e2dad15c438127a0e7.zip meson-c12719fa180fb6c999bd61e2dad15c438127a0e7.tar.gz meson-c12719fa180fb6c999bd61e2dad15c438127a0e7.tar.bz2 |
Advance list of output files so we do not generate same output files multiple times for different input.
-rw-r--r-- | ninjabackend.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ninjabackend.py b/ninjabackend.py index 9081736..19f584f 100644 --- a/ninjabackend.py +++ b/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] |