Skip to content

Commit

Permalink
Kokoro: build with MLGO
Browse files Browse the repository at this point in the history
This makes TOT testing closer to production Clang, without adding too
much build time. This also allows dropping in Clang prebuilts from
Kokoro into Android source code for bisection.

Test: N/A
Change-Id: I640c3974d316cf84f3d79f2db5c1907fcb1554f4
  • Loading branch information
kongy committed Mar 28, 2024
1 parent abe277f commit 1777db0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kokoro/aosp-master-plus-llvm_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ repo sync -c

mkdir dist
DIST_DIR=dist OUT_DIR=out prebuilts/python/linux-x86/bin/python3 \
toolchain/llvm_android/test_compiler.py --build-only --no-mlgo \
toolchain/llvm_android/test_compiler.py --build-only \
--target ${AOSP_BUILD_TARGET}-trunk_staging-userdebug \
--clang-package-path ${KOKORO_GFILE_DIR} .
2 changes: 2 additions & 0 deletions kokoro/llvm_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ mkdir -p "${DIST}"
if [ $LLVM_BUILD_TYPE == "linux-TOT" ]; then
OUT_DIR="${OUT}" DIST_DIR="${DIST}" $TOP/prebuilts/python/linux-x86/bin/python3 \
$python_src/build.py --build-llvm-next --create-tar \
--mlgo \
--build-name "${KOKORO_BUILD_NUMBER}" \
--no-build=windows,lldb
elif [ $LLVM_BUILD_TYPE == "linux-master" ]; then
OUT_DIR="${OUT}" DIST_DIR="${DIST}" $TOP/prebuilts/python/linux-x86/bin/python3 \
$python_src/build.py --create-tar \
--mlgo \
--build-name "${KOKORO_BUILD_NUMBER}" \
--no-build=windows,lldb
else
Expand Down

0 comments on commit 1777db0

Please sign in to comment.