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
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user