aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-08-20 18:29:25 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-08-20 18:29:25 +0300
commit842b5bdbc0deff4adda830418300a3d14e02a192 (patch)
tree09b7cac070261db53aee12fccec602a05b537f1b
parent7eb72cfd7d4e1e7c5075be5a7ec91f152c579e58 (diff)
downloadmeson-842b5bdbc0deff4adda830418300a3d14e02a192.zip
meson-842b5bdbc0deff4adda830418300a3d14e02a192.tar.gz
meson-842b5bdbc0deff4adda830418300a3d14e02a192.tar.bz2
Fix multiple generators in target in Xcode.
-rw-r--r--mesonbuild/backend/xcodebackend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py
index 08179bc..8f711b3 100644
--- a/mesonbuild/backend/xcodebackend.py
+++ b/mesonbuild/backend/xcodebackend.py
@@ -1002,9 +1002,9 @@ class XCodeBackend(backends.Backend):
self.write_tree(objects_dict, project_tree, target_children, '')
def write_tree(self, objects_dict, tree_node, children_array, current_subdir):
- subdir_dict = PbxDict()
- subdir_children = PbxArray()
for subdir_name, subdir_node in tree_node.subdirs.items():
+ subdir_dict = PbxDict()
+ subdir_children = PbxArray()
subdir_id = self.gen_id()
objects_dict.add_item(subdir_id, subdir_dict)
children_array.add_item(subdir_id)