cibuild.sh: Fix "Untracked files: tools/ci/bloaty-src/"

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-12-13 02:53:16 +08:00 committed by Masayuki Ishikawa
parent 7a9267219c
commit 2392659258

View File

@ -148,16 +148,15 @@ function bloaty {
add_path "${tools}"/bloaty/bin
if [ ! -f "${tools}/bloaty/bin/bloaty" ]; then
git clone --branch main https://github.com/google/bloaty bloaty-src
cd bloaty-src
git clone --branch main https://github.com/google/bloaty "${tools}"/bloaty-src
cd "${tools}"/bloaty-src
# Due to issues with latest MacOS versions use pinned commit.
# https://github.com/google/bloaty/pull/326
git checkout 52948c107c8f81045e7f9223ec02706b19cfa882
mkdir -p "${tools}"/bloaty
cmake -D BLOATY_PREFER_SYSTEM_CAPSTONE=NO -DCMAKE_SYSTEM_PREFIX_PATH="${tools}"/bloaty
make install -j 6
cd "${tools}"
rm -rf bloaty-src
git clean -xfd
fi
command bloaty --version