diff options
author | 2020-11-19 16:47:41 +0100 | |
---|---|---|
committer | 2020-11-19 20:02:34 +0100 | |
commit | 588ed66364b8a29111eecfa8d6ee3a366ac5a28b (patch) | |
tree | 64d730c0251b6bac33a3e4042dea587d7974b438 /rust/strip.go | |
parent | 7a64f7e5b61f4e0c784c46eb94086523bb987222 (diff) |
Add comments to {cc,rust}/strip.go
Bug: 173695621
Test: n/a
Change-Id: If3086aa711507c3be6db23e3691163cdd68710bf
Diffstat (limited to 'rust/strip.go')
-rw-r--r-- | rust/strip.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rust/strip.go b/rust/strip.go index d1bbba696..110e3ccdf 100644 --- a/rust/strip.go +++ b/rust/strip.go @@ -19,11 +19,14 @@ import ( "android/soong/cc" ) -// Stripper encapsulates cc.Stripper. +// Stripper defines the stripping actions and properties for a module. The Rust +// implementation reuses the C++ implementation. type Stripper struct { cc.Stripper } +// StripExecutableOrSharedLib strips a binary or shared library from its debug +// symbols and other debug information. func (s *Stripper) StripExecutableOrSharedLib(ctx ModuleContext, in android.Path, out android.ModuleOutPath) { ccFlags := cc.StripFlags{Toolchain: ctx.RustModule().ccToolchain(ctx)} s.Stripper.StripExecutableOrSharedLib(ctx, in, out, ccFlags) |