diff options
author | ThiƩbaud Weksteen <tweek@google.com> | 2021-04-14 11:18:47 +0200 |
---|---|---|
committer | ThiƩbaud Weksteen <tweek@google.com> | 2021-04-15 12:02:51 +0200 |
commit | e4dd14b25fe65b2fc6a5a2fb51d3647f1d455890 (patch) | |
tree | 5a406992407fcba97fe3c22e9186225ce276156d /rust/testing.go | |
parent | 4fab05a2ade36fe74cf3af2aacbb6f53fe280da8 (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/testing.go')
-rw-r--r-- | rust/testing.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/testing.go b/rust/testing.go index 1e01cc0c5..10b768ca9 100644 --- a/rust/testing.go +++ b/rust/testing.go @@ -16,6 +16,7 @@ package rust import ( "android/soong/android" + "android/soong/bloaty" "android/soong/cc" ) @@ -34,6 +35,7 @@ const rustDefaultsDir = "defaults/rust/" // Preparer that will define default rust modules, e.g. standard prebuilt modules. var PrepareForTestWithRustDefaultModules = android.GroupFixturePreparers( cc.PrepareForTestWithCcDefaultModules, + bloaty.PrepareForTestWithBloatyDefaultModules, PrepareForTestWithRustBuildComponents, android.FixtureAddTextFile(rustDefaultsDir+"Android.bp", GatherRequiredDepsForTest()), ) |