From 24f35d0425942180a3c0119c6ee2addbf0d027ca Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Fri, 13 Nov 2015 18:31:15 +0200 Subject: [PATCH] Fix single output generators. --- ninjabackend.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ninjabackend.py b/ninjabackend.py index 19f584f1d..2fb32849c 100644 --- a/ninjabackend.py +++ b/ninjabackend.py @@ -1143,7 +1143,8 @@ rule FORTRAN_DEP_HACK 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):] + if sole_output == '': + 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]