blob: 0d823163b3befd5ef8854571634ea53eef3a55f8 [file] [log] [blame]
Pirama Arumuga Nainara74d6cd2015-04-09 13:57:15 -07001#!/bin/bash -e
2
Stephen Hinesf7805e22015-08-13 22:39:00 -07003export SKIP_LLVM_TESTS=true
4
Pirama Arumuga Nainara74d6cd2015-04-09 13:57:15 -07005build_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
17cd $ANDROID_BUILD_TOP
18source build/envsetup.sh
19lunch aosp_arm64-userdebug
20# Build only llvm, clang and compiler-rt
21cd $ANDROID_BUILD_TOP/external/llvm && mma -j$NUM_CORES || exit 1
22cd $ANDROID_BUILD_TOP/external/clang && mma -j$NUM_CORES || exit 1
23cd $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
27build_profile_rt aosp_arm-userdebug
28build_profile_rt aosp_mips-userdebug
Stephen Hines4fd05c92015-04-09 20:21:28 -070029build_profile_rt aosp_mips64-userdebug
Pirama Arumuga Nainara74d6cd2015-04-09 13:57:15 -070030build_profile_rt aosp_x86-userdebug
31build_profile_rt aosp_x86_64-userdebug