From 773adaa3c715e377c91cf0acaf50cf3708360e7d Mon Sep 17 00:00:00 2001 From: Alix Date: Wed, 27 Apr 2022 17:49:34 +0000 Subject: [PATCH] convert Dynamic_list property Migration of Dynamic_List property Test: Treehugger Bug: 226971493 Change-Id: I067a5a56d167dbd0fb852cbce3d066d42498195e --- cc/bp2build.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cc/bp2build.go b/cc/bp2build.go index cc378b3b4..fdb9fb8ab 100644 --- a/cc/bp2build.go +++ b/cc/bp2build.go @@ -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())