From 31b0d73b170fcfbad49639ad69a499061ee3c6ad Mon Sep 17 00:00:00 2001 From: Ryan Kuester Date: Wed, 20 Nov 2024 16:01:21 -0600 Subject: [PATCH] build(bazel): add --//:with_compression build setting (#2843) 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> --- BUILD | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/BUILD b/BUILD index 2b539afee8b..57eadaa224d 100644 --- a/BUILD +++ b/BUILD @@ -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", + }, +)