summaryrefslogtreecommitdiffstats
path: root/BUILD.bazel
diff options
context:
space:
mode:
authorDerek Mauro <dmauro@google.com>2022-04-26 20:26:45 (GMT)
committerCopybara-Service <copybara-worker@google.com>2022-04-26 20:27:20 (GMT)
commite33c2b24ca3e13df961ed369f7ed21e4cfcf9eec (patch)
treef5ee5044093047f2f02d200f54e1fd3649dcba2c /BUILD.bazel
parent238e4745c62258ca1d2f3c514789205e8419eeee (diff)
downloadgoogletest-e33c2b24ca3e13df961ed369f7ed21e4cfcf9eec.zip
googletest-e33c2b24ca3e13df961ed369f7ed21e4cfcf9eec.tar.gz
googletest-e33c2b24ca3e13df961ed369f7ed21e4cfcf9eec.tar.bz2
Use RE2 for the regex implementation when building with Bazel and using Abseil
bazel build --define=absl=1 ... A dependency on RE2 is now required when building GoogleTest with Abseil. Using RE2 will provide a consistent cross-platform regex experience. Users will need to add the com_googlesource_code_re2, bazel_skylib, and platforms repository to their WORKSPACE files. See our WORKSPACE file in the root directory of this project for an example of how to add the dependencies. Please note that the com_googlesource_code_re2 dependency must use a commit from the `abseil` branch of the project: https://github.com/google/re2/tree/abseil PiperOrigin-RevId: 444650118 Change-Id: I45c55b26684c0c50d721a05b81c5f8a0c092400f
Diffstat (limited to 'BUILD.bazel')
-rw-r--r--BUILD.bazel1
1 files changed, 1 insertions, 0 deletions
diff --git a/BUILD.bazel b/BUILD.bazel
index 192f18e..ac62251 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -143,6 +143,7 @@ cc_library(
"@com_google_absl//absl/types:any",
"@com_google_absl//absl/types:optional",
"@com_google_absl//absl/types:variant",
+ "@com_googlesource_code_re2//:re2",
],
"//conditions:default": [],
}),