Skip to content

Commit

Permalink
build(bazel): add --//:with_compression build setting (#2843)
Browse files Browse the repository at this point in the history
Add a --//:with_compression user-defined build setting and a
corresponding configuration setting.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
rkuester and mergify[bot] authored Nov 20, 2024
1 parent ccc8f6f commit 31b0d73
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,17 @@ refresh_compile_commands(
name = "refresh_compile_commands",
targets = ["//..."],
)

load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")

bool_flag(
name = "with_compression",
build_setting_default = False,
)

config_setting(
name = "with_compression_enabled",
flag_values = {
":with_compression": "True",
},
)

0 comments on commit 31b0d73

Please sign in to comment.