Install the prebuilt heapprofd_client_api library in the ART chroot.
Also add it to the Golem target.
Test: art/tools/buildbot-build.sh
with heapprofd_client_api.so libs in
prebuilts/runtime/mainline/platform/impl/
Test: Set up chroot, then run
adb shell chroot data/local/art-test-chroot \
/apex/com.android.art/bin/art/x86/art_cmdline_tests
Test: art/tools/golem/build-target.sh --golem=art-jit \
--machine-type=android-armv8
on master-art, and check that
out/x86_64/target/product/armv8/system/lib64/heapprofd_client_api.so
exists
Bug: 179915934
Change-Id: I96b143f3f247728779907fe5543ff206a8aa243e
diff --git a/tools/buildbot-build.sh b/tools/buildbot-build.sh
index 2453ca1..d89d47d 100755
--- a/tools/buildbot-build.sh
+++ b/tools/buildbot-build.sh
@@ -141,7 +141,11 @@
# testing, we need to install an implementation of the libraries (and cannot
# rely on the one already installed on the device, if the device is post R and
# has it).
- implementation_libs="libartpalette-system.so liblog.so"
+ implementation_libs=(
+ "heapprofd_client_api.so"
+ "libartpalette-system.so"
+ "liblog.so"
+ )
if [ -d prebuilts/runtime/mainline/platform/impl ]; then
if [[ $TARGET_ARCH = arm* ]]; then
arch32=arm
@@ -150,7 +154,7 @@
arch32=x86
arch64=x86_64
fi
- for so in $implementation_libs; do
+ for so in ${implementation_libs[@]}; do
if [ -d "$ANDROID_PRODUCT_OUT/system/lib" ]; then
cmd="cp -p prebuilts/runtime/mainline/platform/impl/$arch32/$so $ANDROID_PRODUCT_OUT/system/lib/$so"
echo "Executing $cmd"