Skip to content

Commit 5a7d96e

Browse files
authored
feat: Pass -quiet to xcodebuild when gemini-cli calls build.sh (#15603)
1 parent 5b87ff7 commit 5a7d96e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,13 @@ xcb_flags+=(
255255
COMPILER_INDEX_STORE_ENABLE=NO
256256
)
257257

258+
# If running in Gemini CLI, pass -quiet to xcodebuild.
259+
# This reduces chance of exceeding the request token count.
260+
if [[ -n "${GEMINI_CLI:-}" ]]; then
261+
echo "Running in Gemini CLI, adding -quiet to xcodebuild invocation."
262+
xcb_flags+=(-quiet)
263+
fi
264+
258265
source scripts/buildcache.sh
259266
xcb_flags=("${xcb_flags[@]}" "${buildcache_xcb_flags[@]}")
260267

0 commit comments

Comments
 (0)