Skip to content

Commit 3f5a304

Browse files
committed
Omit dependencies that specify they don't want to be linked transitively
1 parent b3e2858 commit 3f5a304

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Sources/XcodeGenKit/PBXProjGenerator.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,6 +1569,11 @@ public class PBXProjGenerator {
15691569
continue
15701570
}
15711571

1572+
// don't include dependencies from lower levels if they ask to not be included in transitive linking
1573+
if !isTopLevel && dependency.excludeFromTransitiveLinking {
1574+
continue
1575+
}
1576+
15721577
// don't want a dependency if it's going to be embedded or statically linked in a non-top level target
15731578
// in .target check we filter out targets that will embed all of their dependencies
15741579
// For some more context about the `dependency.embed != true` lines, refer to https://github.com/yonaskolb/XcodeGen/pull/820

0 commit comments

Comments
 (0)