Merge "Revert^2 "Switch platform-NDK unwinder to LLVM libunwind.a prebuilt"" am: 252831b03a am: a9cf131c22 am: 81d7a5336d

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1661300

Change-Id: I1cd443d4fb6715458477a130803c4f94e5fbeb40
This commit is contained in:
Ryan Prichard 2021-04-02 00:58:03 +00:00 committed by Automerger Merge Worker
commit 9110bde59d
1 changed files with 1 additions and 6 deletions

View File

@ -188,12 +188,7 @@ func (stl *stl) deps(ctx BaseModuleContext, deps Deps) Deps {
if needsLibAndroidSupport(ctx) {
deps.StaticLibs = append(deps.StaticLibs, "ndk_libandroid_support")
}
// TODO: Switch the NDK over to the LLVM unwinder for non-arm32 architectures.
if ctx.Arch().ArchType == android.Arm {
deps.StaticLibs = append(deps.StaticLibs, "ndk_libunwind")
} else {
deps.StaticLibs = append(deps.StaticLibs, "libgcc_stripped")
}
deps.StaticLibs = append(deps.StaticLibs, "ndk_libunwind")
default:
panic(fmt.Errorf("Unknown stl: %q", stl.Properties.SelectedStl))
}