summaryrefslogtreecommitdiff
path: root/rust/library.go
diff options
context:
space:
mode:
author ThiƩbaud Weksteen <tweek@google.com> 2021-04-14 19:15:48 +0200
committer ThiƩbaud Weksteen <tweek@google.com> 2021-04-14 19:20:07 +0200
commit4fab05a2ade36fe74cf3af2aacbb6f53fe280da8 (patch)
treea8da12a6c07f9a427ac41c823d4a9f6877eaff99 /rust/library.go
parentf398995a642e678b619a11f254330da4231a5dd3 (diff)
rust: do not strip static library
Test: m Change-Id: I7dbaf8be625acae89b0a62ea13d0b250c6542a79
Diffstat (limited to 'rust/library.go')
-rw-r--r--rust/library.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/library.go b/rust/library.go
index 71fe1f538..1ca14fcda 100644
--- a/rust/library.go
+++ b/rust/library.go
@@ -475,7 +475,7 @@ func (library *libraryDecorator) compile(ctx ModuleContext, flags Flags, deps Pa
TransformSrctoShared(ctx, srcPath, deps, flags, outputFile, deps.linkDirs)
}
- if !library.rlib() && library.stripper.NeedsStrip(ctx) {
+ if !library.rlib() && !library.static() && library.stripper.NeedsStrip(ctx) {
strippedOutputFile := android.PathForModuleOut(ctx, "stripped", fileName)
library.stripper.StripExecutableOrSharedLib(ctx, outputFile, strippedOutputFile)
library.strippedOutputFile = android.OptionalPathForPath(strippedOutputFile)