xcode: Search for dependencies for custom targets

When generating aggregated targets, custom targets were not being
checked for dependencies when they should have.

Fixes passing swift test case 4 (generate).
pull/12618/head
Albert Tang 1 year ago committed by Eli Schwartz
parent 3836deeed2
commit 1b09cac252
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 5
      mesonbuild/backend/xcodebackend.py

@ -581,6 +581,11 @@ class XCodeBackend(backends.Backend):
build_phases = []
dependencies = [self.regen_dependency_id]
generator_id = 0
for d in t.dependencies:
if isinstance(d, build.CustomTarget):
dependencies.append(self.pbx_custom_dep_map[d.get_id()])
elif isinstance(d, build.BuildTarget):
dependencies.append(self.pbx_dep_map[d.get_id()])
for s in t.sources:
if not isinstance(s, build.GeneratedList):
continue

Loading…
Cancel
Save