Allow libunwindstack to use libdexfile.
On host, building libunwinstack does not build libdexfile. So by
default, the host dex file tests will fail until libdexfile is built.
Allow libunwindstack to mark libdexfile as a runtime library to avoid
this problem.
Bug: 191276623
Test: Builds and libunwindstack unit tests pass on host.
Change-Id: Ib005709e22d0ba13e63108c4d1701d88c0e97374
diff --git a/libdexfile/Android.bp b/libdexfile/Android.bp
index b6d91b9..8411948 100644
--- a/libdexfile/Android.bp
+++ b/libdexfile/Android.bp
@@ -162,6 +162,10 @@
art_cc_library {
name: "libdexfile",
+ visibility: [
+ // Allow libunwindstack to list this as a runtime library.
+ "//system/unwinding/libunwindstack",
+ ],
defaults: [
"libdexfile_defaults",
"libart_nativeunwind_defaults",