aboutsummaryrefslogtreecommitdiff
path: root/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-04-19 23:59:06 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-04-19 23:59:06 +0300
commit7b8d24a9d8d2c78c434f0f8ef6b208c0a5dc756a (patch)
tree580145468699236e0400776df2a7908bfe680a78 /backends.py
parent7e3f2f7771b3fa0abb7a86fb8df78f41ff226d39 (diff)
downloadmeson-7b8d24a9d8d2c78c434f0f8ef6b208c0a5dc756a.zip
meson-7b8d24a9d8d2c78c434f0f8ef6b208c0a5dc756a.tar.gz
meson-7b8d24a9d8d2c78c434f0f8ef6b208c0a5dc756a.tar.bz2
Can use msvc static linker.
Diffstat (limited to 'backends.py')
-rwxr-xr-xbackends.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/backends.py b/backends.py
index 5d16a64..2a561d8 100755
--- a/backends.py
+++ b/backends.py
@@ -473,8 +473,9 @@ class NinjaBackend(Backend):
def generate_static_link_rules(self, outfile):
static_linker = self.build.static_linker
rule = 'rule STATIC_LINKER\n'
- command = ' command = %s $LINK_FLAGS $out $in\n' % \
- ' '.join(static_linker.get_exelist())
+ command = ' command = %s $LINK_FLAGS %s $in\n' % \
+ (' '.join(static_linker.get_exelist()),
+ ' '.join(static_linker.get_output_flags('$out')))
description = ' description = Static linking library $out\n\n'
outfile.write(rule)
outfile.write(command)