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