diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-04-21 19:50:44 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-04-22 16:53:43 +0300 |
commit | bff85e2a6c59c2d6eaa64643b3d88bfef7e98843 (patch) | |
tree | fe7616fadec65a077a39e77de05e72bff8e06aeb | |
parent | 40fb466513b5f0b403d889d40fc462a3b962072e (diff) | |
download | meson-bff85e2a6c59c2d6eaa64643b3d88bfef7e98843.zip meson-bff85e2a6c59c2d6eaa64643b3d88bfef7e98843.tar.gz meson-bff85e2a6c59c2d6eaa64643b3d88bfef7e98843.tar.bz2 |
Xcode: do not link shared modules against executables.
-rw-r--r-- | mesonbuild/backend/xcodebackend.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py index c490f76..dff0cfb 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) |