Skip to content

Commit

Permalink
build(bazel): add --//:with_compression build setting
Browse files Browse the repository at this point in the history
Add a --//:with_compression user-defined build setting and a
corresponding configuration setting.
  • Loading branch information
rkuester committed Nov 19, 2024
1 parent cac6c98 commit 254a5ec
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 254a5ec

Please sign in to comment.