Skip to content

Commit 85f8ea7

Browse files
committed
build: use bazel automatic execution strategy selection
* Switches our bazel setup to use the new bazel automatic strategy selection.
1 parent 37086fd commit 85f8ea7

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.bazelrc

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,6 @@ test --test_output=errors
3636
# See https://docs.bazel.build/versions/master/user-manual.html#flag--workspace_status_command
3737
build:release --workspace_status_command="node ./tools/bazel-stamp-vars.js"
3838

39-
###############################
40-
# Typescript / Angular / Sass #
41-
###############################
42-
43-
# Make compilation fast, by keeping a few copies of the compilers
44-
# running as daemons, and cache SourceFile AST's to reduce parse time.
45-
build --strategy=TypeScriptCompile=worker
46-
build --strategy=AngularTemplateCompile=worker
47-
4839
################################
4940
# Temporary Settings for Ivy #
5041
################################
@@ -61,12 +52,9 @@ build --define=compile=legacy
6152
build:remote --remote_instance_name=projects/internal-200822/instances/default_instance
6253
build:remote --project_id=internal-200822
6354

64-
# Setup the build strategy for various types of actions. Mixing "local" and "remote"
65-
# can cause unexpected results and we want to run everything remotely if possible.
66-
build:remote --spawn_strategy=remote,local
67-
build:remote --strategy=Javac=remote
68-
build:remote --strategy=Closure=remote
69-
build:remote --strategy=Genrule=remote
55+
# Setup the build strategy for various types of actions. Strategies are sorted
56+
# based on priority. https://blog.bazel.build/2019/06/19/list-strategy.html
57+
build:remote --spawn_strategy=remote,worker,local
7058
build:remote --define=EXECUTOR=remote
7159

7260
# Setup the remote build execution servers.

0 commit comments

Comments
 (0)