summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-01-25 16:17:26 -0800
committerDan Albert <danalbert@google.com>2015-04-01 17:08:11 -0700
commit23a2626f35430429b4095a10a5d3dd4ebe0c6e4c (patch)
treefc61afca63b275f06f7533c0af50305fbd374982
parent9866aafca719d23eccf5dcdec358d13287927515 (diff)
download3.6-23a2626f35430429b4095a10a5d3dd4ebe0c6e4c.tar.gz
Add libclang_rt.profile to prebuilt update script.
Bug: 17574078 Change-Id: I7af5c7748148e5fa383d450d418c6f9bf156673b
-rwxr-xr-xupdate.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index e5f08ac..b00ec3e 100755
--- a/update.sh
+++ b/update.sh
@@ -45,3 +45,31 @@ cp -a ${ANDROID_HOST_OUT}/obj32/STATIC_LIBRARIES/libasan_intermediates/libasan.a
${LIBS}/libclang_rt.asan-i686.a
cp -a ${ANDROID_HOST_OUT}/obj32/STATIC_LIBRARIES/libasan_cxx_intermediates/libasan_cxx32.a \
${LIBS}/libclang_rt.asan_cxx-i686.a
+
+function copy_profile_rt() {
+ target=$1
+ arch=$2
+ obj=${ANDROID_BUILD_TOP}/out/target/product/${target}/obj/STATIC_LIBRARIES
+ libdir=$(echo lib/clang/*)/lib/linux
+ lib=${libdir}/libclang_rt.profile-${arch}-android.a
+ cp -a ${obj}/libprofile_rt_intermediates/libprofile_rt.a ${lib}
+}
+
+function copy_host_profile_rt() {
+ arch=$1
+ obj_suffix=$2
+ obj=${ANDROID_BUILD_TOP}/out/host/linux-x86/obj$obj_suffix/STATIC_LIBRARIES
+ libdir=$(echo lib/clang/*)/lib/linux
+ lib=${libdir}/libclang_rt.profile-${arch}.a
+ cp -a ${obj}/libprofile_rt_intermediates/libprofile_rt.a ${lib}
+}
+
+copy_profile_rt generic arm
+copy_profile_rt generic_arm64 aarch64
+copy_profile_rt generic_mips mipsel
+copy_profile_rt generic_mips64 mips64el
+copy_profile_rt generic_x86 i686
+copy_profile_rt generic_x86_64 x86_64
+
+copy_host_profile_rt x86_64
+copy_host_profile_rt i686 32