From bfb61abb1060eb204395ca7d6af0ea4826e83e40 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Wed, 21 Apr 2021 19:50:44 +0300 Subject: Xcode: do not link shared modules against executables. --- mesonbuild/backend/xcodebackend.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mesonbuild/backend/xcodebackend.py') 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) -- cgit v1.2.1