Snap for 10453563 from 3548fae93da01b9b99ff0a98bcad42df62aee1f0 to mainline-appsearch-release Change-Id: I547477a2811058b5a06bb540ef9600e3cc569402
diff --git a/Android.bp b/Android.bp index 1ce1365..3451e77 100644 --- a/Android.bp +++ b/Android.bp
@@ -96,6 +96,10 @@ ], // 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 @@ ], // 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", @@ -168,6 +176,9 @@ target: { darwin: { + // TODO: LLD does not implement force_symbols_weak_list or + // force_symbols_not_weak_list. Opt out and keep using ld64. + use_clang_lld: false, unexported_symbols_list: "lib/libc++unexp.exp", force_symbols_not_weak_list: "lib/notweak.exp", force_symbols_weak_list: "lib/weak.exp", @@ -180,10 +191,6 @@ enabled: true, }, }, - - header_abi_checker: { - diff_flags: ["-allow-adding-removing-weak-symbols"], - }, } cc_library_static { @@ -205,7 +212,7 @@ "//apex_available:platform", "com.android.art", "com.android.art.debug", - "com.android.bluetooth", + "com.android.btservices", ], // being part of updatable apexes, this should work on older releases min_sdk_version: "apex_inherit", @@ -241,6 +248,7 @@ "-fsized-deallocation", "-fexceptions", "-fcoroutines-ts", + "-Wno-deprecated-experimental-coroutine", "-Wno-format-zero-length", "-Wno-implicit-fallthrough", "-Wno-non-virtual-dtor", @@ -283,23 +291,6 @@ cpp_std: "c++17", } -python_test { - name: "filesystem_dynamic_test_helper.py", - main: "test/support/filesystem_dynamic_test_helper.py", - srcs: [ - "test/support/filesystem_dynamic_test_helper.py", - ], - version: { - py2: { - enabled: true, - embedded_launcher: true, - }, - py3: { - enabled: false, - }, - }, -} - // Export libc++ headers for inclusion in the musl sysroot. genrule { name: "libc_musl_sysroot_libc++_headers",