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

Commit 67237c82 authored by Peter Collingbourne's avatar Peter Collingbourne Committed by Gerrit Code Review
Browse files

Merge "Pass -Wl,--as-needed when linking Rust binaries."

parents cf761256 4629f7c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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, " "))