aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2022-02-02 13:38:12 -0800
committerColin Cross <ccross@android.com>2022-02-02 13:40:48 -0800
commit74985fccfbed1804657923b722fcba8b6f31963c (patch)
tree03e74638e3422e83916503a2a2b1a8619551c12b
parent86180c68b79d2215d61ddccf3a7362353fb33555 (diff)
downloadarm-optimized-routines-74985fccfbed1804657923b722fcba8b6f31963c.tar.gz
arm-optimized-routines is included in bionic, so it sets system_shared_libs to empty to avoid a circular dependency. Clear system_shared_libs only when compiling for bionic so that the host tests can compile against musl. Bug: 190084016 Test: m USE_HOST_MUSL=true host-native Change-Id: I6915c45bb271683f04c2a5cbf9cbcfa2e332faba
-rwxr-xr-xAndroid.bp10
1 files changed, 7 insertions, 3 deletions
diff --git a/Android.bp b/Android.bp
index ba814eb..8fe656e 100755
--- a/Android.bp
+++ b/Android.bp
@@ -56,10 +56,14 @@ cc_defaults {
],
stl: "none",
- static: {
- system_shared_libs: [],
+ target: {
+ bionic: {
+ static: {
+ system_shared_libs: [],
+ },
+ header_libs: ["libc_headers"],
+ },
},
- header_libs: ["libc_headers"],
}
cc_library_static {