diff options
author | 2022-10-11 11:49:43 -0700 | |
---|---|---|
committer | 2022-10-11 11:50:55 -0700 | |
commit | 1deeade634db32b1672b49ef99fdf678036c6b8d (patch) | |
tree | c55dd137b185a9e6a4d4d64f20c5b90a593e5e91 | |
parent | 17e0b7607a640dd419ba39cd10a189ae2103ec93 (diff) |
Disable stripping for riscv64
create_minidebuginfo doesn't support riscv64 yet, disable stripping
for riscv64 until it does.
Test: m ALLOW_MISSING_DEPENDENCIES=true LLVM_PREBUILTS_VERSION=clang-r468909b LLVM_RELEASE_VERSION=15.0.3 libc -k
Change-Id: Iaad7ec0e4befe1652b413e20a7095cdde56d57bc
-rw-r--r-- | cc/strip.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/strip.go b/cc/strip.go index c60e13530..5c32d8b04 100644 --- a/cc/strip.go +++ b/cc/strip.go @@ -56,7 +56,9 @@ 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) - return !forceDisable && (forceEnable || defaultEnable) + // create_minidebuginfo doesn't work for riscv64 yet, disable stripping for now + riscv64 := actx.Arch().ArchType == android.Riscv64 + return !forceDisable && (forceEnable || defaultEnable) && !riscv64 } // Keep this consistent with //build/bazel/rules/stripped_shared_library.bzl. |