From a1d459bb4b56c1d931a8b6bb10336001867a4a6d Mon Sep 17 00:00:00 2001 From: Ryan Kuester Date: Thu, 10 Oct 2024 12:28:39 -0500 Subject: [PATCH] build(bazel): add --//with_compression build setting Add a --//with_compression user-defined build setting and a corresponding configuration setting. --- 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", + }, +)