Skip to content

Commit ec2e3ad

Browse files
devversionjosephperrott
authored andcommitted
build: only stamp build builds in release mode (angular#14431)
* No longer runs the `workspace_status_command` for normal Bazel builds. This should speed up builds by about ~8 seconds init phase.
1 parent faac494 commit ec2e3ad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.bazelrc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,14 @@ test --test_output=errors
3333
build --experimental_ui
3434
test --experimental_ui
3535

36+
#################################
37+
# Release configuration. #
38+
# Run with "--config=release" #
39+
#################################
40+
3641
# Configures script to do version stamping.
3742
# See https://docs.bazel.build/versions/master/user-manual.html#flag--workspace_status_command
38-
build --workspace_status_command=./tools/bazel-stamp-vars.sh
43+
build:release --workspace_status_command=./tools/bazel-stamp-vars.sh
3944

4045
###############################
4146
# Typescript / Angular / Sass #

0 commit comments

Comments
 (0)