We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17bc235 commit 30a37e1Copy full SHA for 30a37e1
BUILD.bazel
@@ -51,6 +51,7 @@ cc_library(
51
}),
52
defines = [
53
"BENCHMARK_STATIC_DEFINE",
54
+ "BENCHMARK_VERSION=\\\"" + (module_version() if module_version() != None else "") + "\\\"",
55
] + select({
56
":perfcounters": ["HAVE_LIBPFM"],
57
"//conditions:default": [],
src/benchmark.cc
@@ -748,13 +748,7 @@ int InitializeStreams() {
748
749
} // end namespace internal
750
751
-std::string GetBenchmarkVersiom() {
752
-#if defined(BENCHMARK_VERSION)
753
- return {BENCHMARK_VERSION};
754
-#else
755
- return "hello, bazel!";
756
-#endif
757
-}
+std::string GetBenchmarkVersiom() { return {BENCHMARK_VERSION}; }
758
759
void PrintDefaultHelp() {
760
fprintf(stdout,
0 commit comments