mirror of
https://github.com/google/benchmark.git
synced 2024-11-29 18:34:47 +00:00
a9beffda0b
* Add myself to CONTRIBUTORS under the corp CLA for Stripe, Inc. * Add support for building with Bazel. Limitations compared to existing CMake rules: * Defaults to using C++11 `<regex>`, with an override via Bazel flag `--define` of `google_benchmark.have_regex`. The TravisCI config sets the regex implementation to `posix` because it uses ancient compilers. * Debug vs Opt mode can't be set per test. TravisCI runs all the tests in debug mode to satisfy `diagnostics_test`, which depends on `CHECK` being live. * Set Bazel workspace name so other repos can refer to it by stable name. This is recommended by the Bazel style guide to avoid each dependent workspace defining its own name for the dependency.
10 lines
292 B
Python
10 lines
292 B
Python
workspace(name = "com_github_google_benchmark")
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
|
|
|
|
git_repository(
|
|
name = "com_google_googletest",
|
|
commit = "3f0cf6b62ad1eb50d8736538363d3580dd640c3e", # HEAD
|
|
remote = "https://github.com/google/googletest",
|
|
)
|