summaryrefslogtreecommitdiff
path: root/rust/builder.go
diff options
context:
space:
mode:
authorThiƩbaud Weksteen <tweek@google.com>2021-04-14 11:18:47 +0200
committerThiƩbaud Weksteen <tweek@google.com>2021-04-15 12:02:51 +0200
commite4dd14b25fe65b2fc6a5a2fb51d3647f1d455890 (patch)
tree5a406992407fcba97fe3c22e9186225ce276156d /rust/builder.go
parent4fab05a2ade36fe74cf3af2aacbb6f53fe280da8 (diff)
bloaty: measure stripped Rust binaries
Modify bloaty's MeasureSizeForPath to allow a module to provide multiple paths. This is used to measure both unstripped and stripped libraries/binaries. Add unit test to ensure correct measurements are generated for Rust. Test: m out/soong/binary_sizes.pb.gz Change-Id: I59439b77dbf1cf5ad71e1c02996a6a90938536b4
Diffstat (limited to 'rust/builder.go')
-rw-r--r--rust/builder.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/rust/builder.go b/rust/builder.go
index 197c7033b..208b73450 100644
--- a/rust/builder.go
+++ b/rust/builder.go
@@ -21,7 +21,6 @@ import (
"github.com/google/blueprint"
"android/soong/android"
- "android/soong/bloaty"
"android/soong/rust/config"
)
@@ -254,8 +253,6 @@ func transformSrctoCrate(ctx ModuleContext, main android.Path, deps PathDeps, fl
implicits = append(implicits, clippyFile)
}
- bloaty.MeasureSizeForPath(ctx, outputFile)
-
ctx.Build(pctx, android.BuildParams{
Rule: rustc,
Description: "rustc " + main.Rel(),