From d6ef93434ea94be79af792d81c4ea273a408dc6c Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Wed, 11 Mar 2015 22:25:41 +0200 Subject: [PATCH] Fix generators with multiple files. --- ninjabackend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ninjabackend.py b/ninjabackend.py index 738ed5cf9..2017ca52c 100644 --- a/ninjabackend.py +++ b/ninjabackend.py @@ -995,7 +995,7 @@ rule FORTRAN_DEP_HACK base_args = generator.get_arglist() for i in range(len(infilelist)): if len(generator.outputs) == 1: - sole_output = os.path.join(self.get_target_private_dir(target), outfilelist[0]) + sole_output = os.path.join(self.get_target_private_dir(target), outfilelist[i]) else: sole_output = '' curfile = infilelist[i]