summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-04-21 19:50:44 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-04-21 19:50:44 +0300
commitbfb61abb1060eb204395ca7d6af0ea4826e83e40 (patch)
treefe7616fadec65a077a39e77de05e72bff8e06aeb
parent53fc7a12c6f19a9c5d71ff4fac2d81f9da9e51c6 (diff)
downloadmeson-xcode1234.tar.gz
Xcode: do not link shared modules against executables.xcode1234
-rw-r--r--mesonbuild/backend/xcodebackend.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py
index c490f7688..dff0cfb79 100644
--- a/mesonbuild/backend/xcodebackend.py
+++ b/mesonbuild/backend/xcodebackend.py
@@ -1301,6 +1301,8 @@ class XCodeBackend(backends.Backend):
links_dylib = False
dep_libs = []
for l in target.link_targets:
+ if isinstance(target, build.SharedModule) and isinstance(l, build.Executable):
+ continue
abs_path = os.path.join(self.environment.get_build_dir(),
l.subdir, buildtype, l.get_filename())
dep_libs.append("'%s'" % abs_path)