Pirama Arumuga Nainar | a74d6cd | 2015-04-09 13:57:15 -0700 | [diff] [blame] | 1 | #!/bin/bash -e |
| 2 | |
Stephen Hines | f7805e2 | 2015-08-13 22:39:00 -0700 | [diff] [blame] | 3 | export SKIP_LLVM_TESTS=true |
| 4 | |
Pirama Arumuga Nainar | a74d6cd | 2015-04-09 13:57:15 -0700 | [diff] [blame] | 5 | build_profile_rt() { |
| 6 | echo Building for target $1 |
| 7 | cd $ANDROID_BUILD_TOP |
| 8 | source build/envsetup.sh |
| 9 | lunch $1 |
| 10 | |
| 11 | # Build only compiler-rt to get the runtime libraries |
| 12 | echo Building compiler-rt for target $1 |
| 13 | cd $ANDROID_BUILD_TOP/external/compiler-rt && mma -j$NUM_CORES || exit 1 |
| 14 | } |
| 15 | |
| 16 | # Only build the host tools once |
| 17 | cd $ANDROID_BUILD_TOP |
| 18 | source build/envsetup.sh |
| 19 | lunch aosp_arm64-userdebug |
| 20 | # Build only llvm, clang and compiler-rt |
| 21 | cd $ANDROID_BUILD_TOP/external/llvm && mma -j$NUM_CORES || exit 1 |
| 22 | cd $ANDROID_BUILD_TOP/external/clang && mma -j$NUM_CORES || exit 1 |
| 23 | cd $ANDROID_BUILD_TOP/external/compiler-rt && mma -j$NUM_CORES || exit 1 |
| 24 | |
| 25 | # Skip arm64, since we used that for our host tool build |
| 26 | # build_profile_rt aosp_arm64-userdebug |
| 27 | build_profile_rt aosp_arm-userdebug |
| 28 | build_profile_rt aosp_mips-userdebug |
Stephen Hines | 4fd05c9 | 2015-04-09 20:21:28 -0700 | [diff] [blame] | 29 | build_profile_rt aosp_mips64-userdebug |
Pirama Arumuga Nainar | a74d6cd | 2015-04-09 13:57:15 -0700 | [diff] [blame] | 30 | build_profile_rt aosp_x86-userdebug |
| 31 | build_profile_rt aosp_x86_64-userdebug |