aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/linkers.py
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2018-06-23 03:53:05 +0200
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-06-25 16:12:35 +0000
commitd784b5772a55eadb88034bd1992adeaddfba28d0 (patch)
tree474ff97763714d0d452bb9fdd19670d4cea71146 /mesonbuild/linkers.py
parent87871e7b95d4cc89627971f316bdeffebde048e5 (diff)
downloadmeson-d784b5772a55eadb88034bd1992adeaddfba28d0.zip
meson-d784b5772a55eadb88034bd1992adeaddfba28d0.tar.gz
meson-d784b5772a55eadb88034bd1992adeaddfba28d0.tar.bz2
ArLinker: Use response files on Windows
ninja chokes when building FFmpeg's static libraries, as the command line can be larger than 32000. This was disabled on purpose in #1649, but the rsp syntax was different: this commit makes it so the options and output file are still passed on the command line, gcc-ar didn't work otherwise.
Diffstat (limited to 'mesonbuild/linkers.py')
-rw-r--r--mesonbuild/linkers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py
index cb07c5e..7e89de5 100644
--- a/mesonbuild/linkers.py
+++ b/mesonbuild/linkers.py
@@ -88,7 +88,7 @@ class ArLinker(StaticLinker):
self.std_args = ['-csr']
def can_linker_accept_rsp(self):
- return False
+ return mesonlib.is_windows()
def build_rpath_args(self, build_dir, from_dir, rpath_paths, build_rpath, install_rpath):
return []