Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bbd3a3ba authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Dedupe all deps of cc_libraries" into main

parents cc259040 f3ab29be
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1032,6 +1032,13 @@ func bp2BuildParseBaseProps(ctx android.Bp2buildMutatorContext, module *Module)

	addMuslSystemDynamicDeps(ctx, linkerAttrs)

	// Dedupe all deps.
	(&linkerAttrs).deps.Value = bazel.FirstUniqueBazelLabelList((&linkerAttrs).deps.Value)
	(&linkerAttrs).implementationDeps.Value = bazel.FirstUniqueBazelLabelList((&linkerAttrs).implementationDeps.Value)
	(&linkerAttrs).implementationDynamicDeps.Value = bazel.FirstUniqueBazelLabelList((&linkerAttrs).implementationDynamicDeps.Value)
	(&linkerAttrs).wholeArchiveDeps.Value = bazel.FirstUniqueBazelLabelList((&linkerAttrs).wholeArchiveDeps.Value)
	(&linkerAttrs).implementationWholeArchiveDeps.Value = bazel.FirstUniqueBazelLabelList((&linkerAttrs).implementationWholeArchiveDeps.Value)

	return baseAttributes{
		compilerAttrs,
		linkerAttrs,