Merge "convert Dynamic_list property" am: 5b75bf1d7e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2078468 Change-Id: I9bf7b93f4b71f45abb54dfb7be1484b8a9fa2fe9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -684,6 +684,13 @@ func (la *linkerAttributes) bp2buildForAxisAndConfig(ctx android.BazelConversion
|
|||||||
la.additionalLinkerInputs.SetSelectValue(axis, config, bazel.LabelList{Includes: []bazel.Label{label}})
|
la.additionalLinkerInputs.SetSelectValue(axis, config, bazel.LabelList{Includes: []bazel.Label{label}})
|
||||||
linkerFlags = append(linkerFlags, fmt.Sprintf("-Wl,--version-script,$(location %s)", 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.linkopts.SetSelectValue(axis, config, linkerFlags)
|
||||||
la.useLibcrt.SetSelectValue(axis, config, props.libCrt())
|
la.useLibcrt.SetSelectValue(axis, config, props.libCrt())
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user