Merge "Pass -Wl,--as-needed when linking Rust binaries." am: 67237c82ed

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2536016

Change-Id: I9f56304eb3f52b79997e9deefeccf8e752fe2460
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Peter Collingbourne
2023-04-18 19:50:37 +00:00
committed by Automerger Merge Worker

View File

@@ -104,7 +104,7 @@ func init() {
pctx.ImportAs("cc_config", "android/soong/cc/config")
pctx.StaticVariable("RustLinker", "${cc_config.ClangBin}/clang++")
pctx.StaticVariable("RustLinkerArgs", "")
pctx.StaticVariable("RustLinkerArgs", "-Wl,--as-needed")
pctx.StaticVariable("DeviceGlobalLinkFlags", strings.Join(deviceGlobalLinkFlags, " "))