summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2022-03-24 16:30:24 -0700
committerColin Cross <ccross@android.com>2022-03-24 16:30:24 -0700
commit3fb6550d29f55d7ce655b4230e9ba4ad340887b6 (patch)
treecbec17fc5461c85e68c45c74f70b1d2e0f1a6cc9
parent08cc2174fba61526069def6b008e20f5b8e7b917 (diff)
downloadunwinding-3fb6550d29f55d7ce655b4230e9ba4ad340887b6.tar.gz
Tweak linux_glibc properties for musl builds in system/unwinding
For convenience, builds against musl libc currently use the linux_glibc properties because they are almost always linux-specific and not glibc-specific. In preparation for removing this hack, tweak the linux_glibc properties by either moving them to host_linux, which will apply to linux_glibc, linux_musl and linux_bionic, or by setting appropriate musl or linux_musl properties. Properties that must not be repeated while musl uses linux_musl and also still uses the linux_glibc properties are moved to glibc properties, which don't apply to musl. Whether these stay as glibc properties or get moved back to linux_glibc later once the musl hack is removed is TBD. Bug: 223257095 Test: m checkbuild Test: m USE_HOST_MUSL=true host-native Change-Id: I058b62b0d333f1c41e7c1a4c77de63c5a6fe56c7
-rw-r--r--libbacktrace/Android.bp5
1 files changed, 1 insertions, 4 deletions
diff --git a/libbacktrace/Android.bp b/libbacktrace/Android.bp
index 93a6fd3..af14cde 100644
--- a/libbacktrace/Android.bp
+++ b/libbacktrace/Android.bp
@@ -56,9 +56,6 @@ cc_library_headers {
"//apex_available:anyapex",
],
target: {
- linux_glibc: {
- enabled: true,
- },
linux_bionic: {
enabled: true,
},
@@ -196,7 +193,7 @@ cc_test_library {
],
target: {
- linux_glibc: {
+ host_linux: {
// This forces the creation of eh_frame with unwind information
// for host.
cflags: [