Merge "Revert "Switch platform-NDK unwinder to LLVM libunwind.a prebuilt"" am: ae4246488f am: 1a454d987c

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

Change-Id: Ica64c45eccfcc33d07a3863bb55f9fe02d0f3d9a
This commit is contained in:
Ryan Prichard 2021-03-31 05:53:09 +00:00 committed by Automerger Merge Worker
commit ffec4fb0b4
1 changed files with 6 additions and 1 deletions

View File

@ -188,7 +188,12 @@ func (stl *stl) deps(ctx BaseModuleContext, deps Deps) Deps {
if needsLibAndroidSupport(ctx) {
deps.StaticLibs = append(deps.StaticLibs, "ndk_libandroid_support")
}
deps.StaticLibs = append(deps.StaticLibs, "ndk_libunwind")
// 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")
}
default:
panic(fmt.Errorf("Unknown stl: %q", stl.Properties.SelectedStl))
}