summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2022-11-11 00:59:14 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2022-11-11 00:59:14 +0000
commit8cf32365192c3d0ec4e13d0b1ff649e7dae157b7 (patch)
tree761461f5a1e23f635172ee00ff7919b504236484
parent1deeade634db32b1672b49ef99fdf678036c6b8d (diff)
Revert "Disable stripping for riscv64"
This reverts commit 1deeade634db32b1672b49ef99fdf678036c6b8d. Reason for revert: create_minidebuginfo is fixed now. Change-Id: I0cd6136b74d4af0e8a6b9718f6b7172b14522743
-rw-r--r--cc/strip.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/cc/strip.go b/cc/strip.go
index 5c32d8b04..c60e13530 100644
--- a/cc/strip.go
+++ b/cc/strip.go
@@ -56,9 +56,7 @@ func (stripper *Stripper) NeedsStrip(actx android.ModuleContext) bool {
forceEnable := Bool(stripper.StripProperties.Strip.All) ||
Bool(stripper.StripProperties.Strip.Keep_symbols) ||
Bool(stripper.StripProperties.Strip.Keep_symbols_and_debug_frame)
- // create_minidebuginfo doesn't work for riscv64 yet, disable stripping for now
- riscv64 := actx.Arch().ArchType == android.Riscv64
- return !forceDisable && (forceEnable || defaultEnable) && !riscv64
+ return !forceDisable && (forceEnable || defaultEnable)
}
// Keep this consistent with //build/bazel/rules/stripped_shared_library.bzl.