From b93ef47b61a1ce12288f630e9b2b3ee508a7ff2a Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Wed, 12 Dec 2018 00:01:34 +0100 Subject: [PATCH] build: only stamp build builds in release mode (#14431) * No longer runs the `workspace_status_command` for normal Bazel builds. This should speed up builds by about ~8 seconds init phase. --- .bazelrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index 763df6f7e3c..57ff8851a0a 100644 --- a/.bazelrc +++ b/.bazelrc @@ -33,9 +33,14 @@ test --test_output=errors build --experimental_ui test --experimental_ui +################################# +# Release configuration. # +# Run with "--config=release" # +################################# + # Configures script to do version stamping. # See https://docs.bazel.build/versions/master/user-manual.html#flag--workspace_status_command -build --workspace_status_command=./tools/bazel-stamp-vars.sh +build:release --workspace_status_command=./tools/bazel-stamp-vars.sh ############################### # Typescript / Angular / Sass #