summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:12:12 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:12:12 +0000
commit66e0cccbb59ff9dec780d751e608155a8ffa7a20 (patch)
treea80cb0561fb5c030c36606ae90363b5ef9aed214
parent5e88b1c1459c0947fa239a512c8a5364aa444768 (diff)
parent3548fae93da01b9b99ff0a98bcad42df62aee1f0 (diff)
downloadlibcxx-android14-mainline-uwb-release.tar.gz
Change-Id: I11ccac58ff37829708963292ec8042e985802f6d
-rw-r--r--Android.bp35
1 files changed, 13 insertions, 22 deletions
diff --git a/Android.bp b/Android.bp
index 1ce1365ab..3451e7701 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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",
@@ -168,6 +176,9 @@ cc_library_shared {
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 @@ cc_library_shared {
enabled: true,
},
},
-
- header_abi_checker: {
- diff_flags: ["-allow-adding-removing-weak-symbols"],
- },
}
cc_library_static {
@@ -205,7 +212,7 @@ cc_library_static {
"//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 @@ cc_binary {
"-fsized-deallocation",
"-fexceptions",
"-fcoroutines-ts",
+ "-Wno-deprecated-experimental-coroutine",
"-Wno-format-zero-length",
"-Wno-implicit-fallthrough",
"-Wno-non-virtual-dtor",
@@ -283,23 +291,6 @@ cc_binary {
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",