Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make indexbuild macos QoS 'utility' by default #3070

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions xcodeproj/internal/templates/bazel_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,13 @@ if [ "$ACTION" == "indexbuild" ]; then
# Use current path for "bazel-out/" and "external/"
# This fixes Index Build to use its version of generated and external files
readonly vfs_overlay_roots="{\"external-contents\": \"$output_path\",\"name\": \"$BAZEL_OUT\",\"type\": \"directory-remap\"},{\"external-contents\": \"$output_base/external\",\"name\": \"$BAZEL_EXTERNAL\",\"type\": \"directory-remap\"}"

readonly indexbuild_startup_flag="--macos_qos_class=utility"
else
readonly output_base="$build_output_base"
readonly output_path="$BAZEL_OUT"
readonly vfs_overlay_roots=""
readonly indexbuild_startup_flag=""
fi

# Set `bazel_cmd` for calling `bazel`
Expand Down Expand Up @@ -79,6 +82,8 @@ readonly bazel_cmd=(
"${bazelrcs[@]}"

--output_base "$output_base"

"$indexbuild_startup_flag"
)

readonly base_pre_config_flags=(
Expand Down
Loading