Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c608f54 authored by Colin Cross's avatar Colin Cross
Browse files

Use platform libc++ for riscv64 sdk variants

There is no prebuilt libc++ for riscv64 provided by the NDK, build
it using the platform sources instead.

Test: lunch aosp_riscv64-userdebug && m -k
Change-Id: Ib9c99381e61331e10c136127a3f1b1626ce75ebe
parent 363ec76a
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -38,9 +38,9 @@ func deduplicateStlInput(stl string) string {
func getNdkStlFamilyAndLinkType(m LinkableInterface) (string, string) {
	stl := m.SelectedStl()
	switch stl {
	case "ndk_libc++_shared":
	case "ndk_libc++_shared", "libc++":
		return "libc++", "shared"
	case "ndk_libc++_static":
	case "ndk_libc++_static", "libc++_static":
		return "libc++", "static"
	case "ndk_system":
		return "system", "shared"
@@ -80,7 +80,8 @@ func (stl *stl) begin(ctx BaseModuleContext) {
			return ""
		}
		s = deduplicateStlInput(s)
		if ctx.useSdk() && ctx.Device() {
		archHasNDKStl := ctx.Arch().ArchType != android.Riscv64
		if ctx.useSdk() && ctx.Device() && archHasNDKStl {
			switch s {
			case "", "system":
				return "ndk_system"