From d987bc2e9c995b12c5ae73fb73cbe0f26f092e18 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Mon, 28 Sep 2015 19:37:54 +0300 Subject: Use rspfile on compiles too. --- ninjabackend.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ninjabackend.py') diff --git a/ninjabackend.py b/ninjabackend.py index 9ef25d1..2f611a1 100644 --- a/ninjabackend.py +++ b/ninjabackend.py @@ -1040,7 +1040,14 @@ rule FORTRAN_DEP_HACK cross_args = self.environment.cross_info.config['properties'][langname + '_args'] except KeyError: pass - command = " command = %s %s $ARGS %s %s %s $in\n" % \ + if mesonlib.is_windows(): + command_template = ''' command = %s @$out.rsp + rspfile = $out.rsp + rspfile_content = %s $ARGS %s %s %s $in +''' + else: + command_template = ' command = %s %s $ARGS %s %s %s $in\n' + command = command_template % \ (' '.join(compiler.get_exelist()),\ ' '.join(cross_args), ' '.join(quoted_depargs),\ -- cgit v1.1