Fix debug/release dependencies on libartbase
We load both the debug and release build when running tests.
The different builds have different layout of some classes,
which can currently result in random native heap corruptions.
Fix the build dependencies to avoid the double loading,
and add runtime check to avoid it in the future again.
Test: test.py -b --host --64
Test: test.py -r --target -t 001-HelloWorld
Change-Id: Ie62f91dc06209c91e25ba5f11c9d61243ac7579d
diff --git a/libelffile/Android.bp b/libelffile/Android.bp
index d8db915..092a429 100644
--- a/libelffile/Android.bp
+++ b/libelffile/Android.bp
@@ -26,7 +26,6 @@
"stream/vector_output_stream.cc",
],
shared_libs: [
- "libartbase",
"libbase",
],
}
@@ -37,6 +36,9 @@
"art_defaults",
"libelffile-defaults",
],
+ shared_libs: [
+ "libartbase",
+ ],
}
art_cc_library_static {
@@ -45,4 +47,7 @@
"art_debug_defaults",
"libelffile-defaults",
],
+ shared_libs: [
+ "libartbased",
+ ],
}