Build sdk variants of libc++ for riscv64

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
bbg

Change-Id: I3e443925549d04edebc9adc56116c5254dbf4307
This commit is contained in:
Colin Cross
2023-01-26 14:06:41 -08:00
parent 28954ab7fc
commit 69c72cf1ae

View File

@@ -96,6 +96,10 @@ cc_library_static {
],
// being part of updatable apexes, this should work on older releases
min_sdk_version: "apex_inherit",
// sdk_version normally isn't needed as only the platform variant
// is used, except on riscv64 which doesn't have an NDK libc++ and
// reuses this module for sdk variants.
sdk_version: "current",
native_bridge_supported: true,
srcs: [
"src/algorithm.cpp",
@@ -161,6 +165,10 @@ cc_library_shared {
],
// being part of updatable apexes, this should work on older releases
min_sdk_version: "apex_inherit",
// sdk_version normally isn't needed as only the platform variant
// is used, except on riscv64 which doesn't have an NDK libc++ and
// reuses this module for sdk variants.
sdk_version: "current",
whole_static_libs: ["libc++_static"],
stl: "none",