aboutsummaryrefslogtreecommitdiff
path: root/cc/config
diff options
context:
space:
mode:
authorlizatretyakova <lizatretyakova@google.com>2022-03-25 06:42:20 -0700
committerCopybara-Service <copybara-worker@google.com>2022-03-25 06:43:20 -0700
commita169dc6be8abdfb14cbdaf2f823ba695acde9545 (patch)
tree5521a6c1b7a093db8d09faffddffacf9350387cd /cc/config
parente3f2db692c5be55cd00be83166f361025a2b8cc4 (diff)
downloadtink-a169dc6be8abdfb14cbdaf2f823ba695acde9545.tar.gz
Hide crypto::tink::util::StatusOr behind a compile-time option. Add the corresponding option to the Bazel files, and use it in the kokoro test preventing slide-backs. Also, rename the test in order to reflect its updated functionality. Do not enable TINK_USE_ABSL_STATUSOR internally yet.
This CL is a part of Tink migration to using absl::Status{,Or} and absl::StatusCode. PiperOrigin-RevId: 437234791
Diffstat (limited to 'cc/config')
-rw-r--r--cc/config/BUILD.bazel11
1 files changed, 11 insertions, 0 deletions
diff --git a/cc/config/BUILD.bazel b/cc/config/BUILD.bazel
index 0598a61c5..8ec12df2e 100644
--- a/cc/config/BUILD.bazel
+++ b/cc/config/BUILD.bazel
@@ -49,6 +49,17 @@ config_setting(
visibility = ["//visibility:public"],
)
+bool_flag(
+ name = "tink_use_absl_statusor",
+ build_setting_default = False,
+)
+
+config_setting(
+ name = "absl_statusor_enabled",
+ flag_values = {"//config:tink_use_absl_statusor": "True"},
+ visibility = ["//visibility:public"],
+)
+
cc_library(
name = "tink_fips",
srcs = ["tink_fips.cc"],