diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-09-28 19:37:54 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-09-29 20:13:22 +0300 |
commit | d987bc2e9c995b12c5ae73fb73cbe0f26f092e18 (patch) | |
tree | 9c4a2eca4061e8fa3e497e6c0112408453863e41 | |
parent | be6114068ba6d0291d89b21c622acb5cde0e8946 (diff) | |
download | meson-d987bc2e9c995b12c5ae73fb73cbe0f26f092e18.zip meson-d987bc2e9c995b12c5ae73fb73cbe0f26f092e18.tar.gz meson-d987bc2e9c995b12c5ae73fb73cbe0f26f092e18.tar.bz2 |
Use rspfile on compiles too.
-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),\ |