summaryrefslogtreecommitdiff
path: root/rust/rust.go
diff options
context:
space:
mode:
author ThiƩbaud Weksteen <tweek@google.com> 2021-04-15 18:46:32 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-04-15 18:46:32 +0000
commit45c647d4dc47ac091f73826c0282b97be202ed84 (patch)
tree11648a3d3c1cefb68c470c8c81b0ec974864b81f /rust/rust.go
parent9e7cea2c0bbe6694ad32fd8e5784c7009f2080a5 (diff)
parente4dd14b25fe65b2fc6a5a2fb51d3647f1d455890 (diff)
Merge changes I59439b77,I7dbaf8be
* changes: bloaty: measure stripped Rust binaries rust: do not strip static library
Diffstat (limited to 'rust/rust.go')
-rw-r--r--rust/rust.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/rust.go b/rust/rust.go
index d2de1bcae..9738b467f 100644
--- a/rust/rust.go
+++ b/rust/rust.go
@@ -22,6 +22,7 @@ import (
"github.com/google/blueprint/proptools"
"android/soong/android"
+ "android/soong/bloaty"
"android/soong/cc"
cc_config "android/soong/cc/config"
"android/soong/rust/config"
@@ -751,8 +752,8 @@ func (mod *Module) GenerateAndroidBuildActions(actx android.ModuleContext) {
if mod.compiler != nil && !mod.compiler.Disabled() {
mod.compiler.initialize(ctx)
unstrippedOutputFile := mod.compiler.compile(ctx, flags, deps)
-
mod.unstrippedOutputFile = android.OptionalPathForPath(unstrippedOutputFile)
+ bloaty.MeasureSizeForPaths(ctx, mod.compiler.strippedOutputFilePath(), mod.unstrippedOutputFile)
apexInfo := actx.Provider(android.ApexInfoProvider).(android.ApexInfo)
if mod.installable(apexInfo) {