diff options
author | Colin Cross <ccross@android.com> | 2022-02-02 13:38:12 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2022-02-02 13:40:48 -0800 |
commit | 74985fccfbed1804657923b722fcba8b6f31963c (patch) | |
tree | 03e74638e3422e83916503a2a2b1a8619551c12b | |
parent | 86180c68b79d2215d61ddccf3a7362353fb33555 (diff) | |
download | arm-optimized-routines-74985fccfbed1804657923b722fcba8b6f31963c.tar.gz |
Only clear system_shared_libs when building for bionicandroid-t-preview-2android-t-preview-1android-t-beta-3android-s-v2-beta-3android-s-qpr3-beta-1android-t-preview-1android-s-v2-beta-3android-s-qpr3-beta-1
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-x | Android.bp | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 { |