diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-04-12 17:57:36 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-04-12 17:57:36 +0300 |
commit | 3bae827eca86e03b5e581dfc5a57f563f63dd33c (patch) | |
tree | 5ee1e9f062e1bf6e925b4451f5a7b283531056ed /mesonbuild/backend | |
parent | 50cf8bcabaa2a9b1ae37c071c7c5f4afd47af4d0 (diff) | |
download | meson-xcodex.zip meson-xcodex.tar.gz meson-xcodex.tar.bz2 |
Use correct key for file id lookup.xcodex
Diffstat (limited to 'mesonbuild/backend')
-rw-r--r-- | mesonbuild/backend/xcodebackend.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py index cb5e330..47950f2 100644 --- a/mesonbuild/backend/xcodebackend.py +++ b/mesonbuild/backend/xcodebackend.py @@ -725,9 +725,11 @@ class XCodeBackend(backends.Backend): source_files_dict.add_item('children', source_file_children) for s in t.sources: if isinstance(s, mesonlib.File): - s = os.path.join(t.subdir, s.fname) - if not isinstance(s, str): - clontinue + s = os.path.join(s.subdir, s.fname) + elif isinstance(s, str): + s = os.path.joni(t.subdir, s) + else: + continue source_file_children.add_item(self.fileref_ids[(tname, s)], s) for o in t.objects: if isinstance(o, build.ExtractedObjects): |