aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-04-06 18:05:21 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-04-07 17:01:55 +0300
commit3b16e390094fbd0a7b6004d1c54e8d79414cca7a (patch)
tree4cb4a3ec8f3a24c9f4e6643e602fdf2effd9da2d
parentaac67b502bb7730f9c1d54ee26d3a6ee44baa1db (diff)
downloadmeson-3b16e390094fbd0a7b6004d1c54e8d79414cca7a.zip
meson-3b16e390094fbd0a7b6004d1c54e8d79414cca7a.tar.gz
meson-3b16e390094fbd0a7b6004d1c54e8d79414cca7a.tar.bz2
Fix building static libs with the Xcode backend.
-rw-r--r--mesonbuild/backend/xcodebackend.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py
index 999378f..1c6e15d 100644
--- a/mesonbuild/backend/xcodebackend.py
+++ b/mesonbuild/backend/xcodebackend.py
@@ -821,7 +821,8 @@ class XCodeBackend(backends.Backend):
ldargs += target.link_args
linker, stdlib_args = self.determine_linker_and_stdlib_args(target)
ldargs += self.build.get_project_link_args(linker, target.subproject, target.for_machine)
- ldargs += self.build.get_global_link_args(linker, target.for_machine)
+ if not isinstance(target, build.StaticLibrary):
+ ldargs += self.build.get_global_link_args(linker, target.for_machine)
cargs = []
for dep in target.get_external_deps():
cargs += dep.get_compile_args()