blob: 5cdc3f96237e9bcaa0c2b27f865658888fc87af7 [file] [log] [blame]
Pirama Arumuga Nainara74d6cd2015-04-09 13:57:15 -07001#!/bin/bash -e
2
3build_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
15cd $ANDROID_BUILD_TOP
16source build/envsetup.sh
17lunch aosp_arm64-userdebug
18# Build only llvm, clang and compiler-rt
19cd $ANDROID_BUILD_TOP/external/llvm && mma -j$NUM_CORES || exit 1
20cd $ANDROID_BUILD_TOP/external/clang && mma -j$NUM_CORES || exit 1
21cd $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
25build_profile_rt aosp_arm-userdebug
26build_profile_rt aosp_mips-userdebug
Stephen Hines4fd05c92015-04-09 20:21:28 -070027build_profile_rt aosp_mips64-userdebug
Pirama Arumuga Nainara74d6cd2015-04-09 13:57:15 -070028build_profile_rt aosp_x86-userdebug
29build_profile_rt aosp_x86_64-userdebug