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

Commit db195fd4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge changes from topic "reland-hack-rv64-libc++" into main

* changes:
  Revert "Revert "Set VIC as minimum SDK version for riscv64""
  Revert "Revert "Use prebuilt NDK libc++ for rv64.""
parents 7e377d04 81532c27
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -31,7 +31,11 @@ func MinApiForArch(ctx android.EarlyModuleContext,
	case android.Arm64, android.X86_64:
		return android.FirstLp64Version
	case android.Riscv64:
		return android.FutureApiLevel
		apiLevel, err := android.ApiLevelFromUser(ctx, "VanillaIceCream")
		if err != nil {
			panic(err)
		}
		return apiLevel
	default:
		panic(fmt.Errorf("Unknown arch %q", arch))
	}
+1 −2
Original line number Diff line number Diff line
@@ -80,8 +80,7 @@ func (stl *stl) begin(ctx BaseModuleContext) {
			return ""
		}
		s = deduplicateStlInput(s)
		archHasNDKStl := ctx.Arch().ArchType != android.Riscv64
		if ctx.useSdk() && ctx.Device() && archHasNDKStl {
		if ctx.useSdk() && ctx.Device() {
			switch s {
			case "", "system":
				return "ndk_system"