Disable USE_RBE with b builds (m bp2build).
RBE is not used with standalone builds, and it adds unnecessary overhead. Test: without this change, b info no-op takes 24s on my machine. with this change, it drops to 9s. Fixes: 251441524 Bug: 243596580 Change-Id: I564629064f51e2b2cad836915aacf6f72e84aaeb
This commit is contained in:
@@ -1821,8 +1821,10 @@ function b()
|
|||||||
skip_tests=""
|
skip_tests=""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Generate BUILD, bzl files into the synthetic Bazel workspace (out/soong/workspace).
|
# Generate BUILD, bzl files into the synthetic Bazel workspace (out/soong/workspace).
|
||||||
_trigger_build "all-modules" bp2build $skip_tests USE_BAZEL_ANALYSIS= || return 1
|
# RBE is disabled because it's not used with b builds and adds overhead: b/251441524
|
||||||
|
USE_RBE=false _trigger_build "all-modules" bp2build $skip_tests USE_BAZEL_ANALYSIS= || return 1
|
||||||
# Then, run Bazel using the synthetic workspace as the --package_path.
|
# Then, run Bazel using the synthetic workspace as the --package_path.
|
||||||
if [[ -z "$bazel_args" ]]; then
|
if [[ -z "$bazel_args" ]]; then
|
||||||
# If there are no args, show help and exit.
|
# If there are no args, show help and exit.
|
||||||
|
Reference in New Issue
Block a user