Copy ubsan runtime prebuilt when building tests.
The UBSan runtime might be required if sanitizers with diagnostics
are enabled in components. This adds the prebuilt to the out path such
that the built binaries can depend on it.
Bug: 148289941
Test: art/test/testrunner/run_build_test_target.py art-linux-bionic-x64
Change-Id: Ibf8d4a38781838690bd1211550925700ea3d57f3
diff --git a/tools/build_linux_bionic_tests.sh b/tools/build_linux_bionic_tests.sh
index 36e3bb8..76dabd4 100755
--- a/tools/build_linux_bionic_tests.sh
+++ b/tools/build_linux_bionic_tests.sh
@@ -81,6 +81,7 @@
$soong_out/bin/hiddenapi
$soong_out/bin/hprof-conv
$soong_out/bin/signal_dumper
+ $soong_out/lib64/libclang_rt.ubsan_standalone-x86_64-android.so
$(find $host_out/apex -type f | sed "s:$host_out:$soong_out:g")
$(find $host_out/lib64 -type f | sed "s:$host_out:$soong_out:g")
$(find $host_out/nativetest64 -type f | sed "s:$host_out:$soong_out:g"))