Merge changes I59439b77,I7dbaf8be

* changes:
  bloaty: measure stripped Rust binaries
  rust: do not strip static library
This commit is contained in:
Thiébaud Weksteen
2021-04-15 18:46:32 +00:00
committed by Gerrit Code Review
8 changed files with 77 additions and 20 deletions

View File

@@ -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()),
)