aboutsummaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-09-23 17:20:45 -0400
committerEli Schwartz <eschwartz@archlinux.org>2021-10-10 13:32:22 -0400
commit0a3a9fa0c3ebf45c94d9009a59cead571cbecf7b (patch)
tree9c91885f2dc1a908192fb3fe5e2ac03c8510059d /unittests
parent253ff71e6b801786290b6ecb23aea61dcfeebeca (diff)
downloadmeson-0a3a9fa0c3ebf45c94d9009a59cead571cbecf7b.zip
meson-0a3a9fa0c3ebf45c94d9009a59cead571cbecf7b.tar.gz
meson-0a3a9fa0c3ebf45c94d9009a59cead571cbecf7b.tar.bz2
ar linker: generate thin archives for uninstalled static libraries
Since they will never be used outside of the build directory, they do not need to literally contain the .o files, and references will be sufficient. This covers a major use of object libraries, which is that the static library would potentially take up a lot of space by including another copy of every .o file. Fixes #9292 Fixes #8057 Fixes #2129
Diffstat (limited to 'unittests')
-rw-r--r--unittests/allplatformstests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index 707fc1d..9468fd5 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -1447,7 +1447,7 @@ class AllPlatformTests(BasePlatformTests):
link_cmd = ['ar', 'csr', outfile, objectfile]
link_cmd = linker.get_exelist()
link_cmd += linker.get_always_args()
- link_cmd += linker.get_std_link_args()
+ link_cmd += linker.get_std_link_args(False)
link_cmd += linker.get_output_args(outfile)
link_cmd += [objectfile]
self.pbcompile(compiler, source, objectfile, extra_args=extra_args)