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 Oct 17, 2024
1 parent 4edc564 commit a1d459b
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 a1d459b

Please sign in to comment.