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

Commit 773adaa3 authored by Alix's avatar Alix
Browse files

convert Dynamic_list property

Migration of Dynamic_List property

Test: Treehugger
Bug: 226971493
Change-Id: I067a5a56d167dbd0fb852cbce3d066d42498195e
parent be9b9dee
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -691,6 +691,13 @@ func (la *linkerAttributes) bp2buildForAxisAndConfig(ctx android.BazelConversion
		la.additionalLinkerInputs.SetSelectValue(axis, config, bazel.LabelList{Includes: []bazel.Label{label}})
		linkerFlags = append(linkerFlags, fmt.Sprintf("-Wl,--version-script,$(location %s)", label.Label))
	}

	if props.Dynamic_list != nil {
		label := android.BazelLabelForModuleSrcSingle(ctx, *props.Dynamic_list)
		la.additionalLinkerInputs.SetSelectValue(axis, config, bazel.LabelList{Includes: []bazel.Label{label}})
		linkerFlags = append(linkerFlags, fmt.Sprintf("-Wl,--dynamic-list,$(location %s)", label.Label))
	}

	la.linkopts.SetSelectValue(axis, config, linkerFlags)
	la.useLibcrt.SetSelectValue(axis, config, props.libCrt())