diff options
-rw-r--r-- | ninjabackend.py | 9 |
1 files changed, 8 insertions, 1 deletions
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),\ |