mirror of
https://github.com/google/benchmark.git
synced 2025-04-03 16:10:58 +08:00
parent
17bc235ab3
commit
30a37e1b0b
@ -51,6 +51,7 @@ cc_library(
|
|||||||
}),
|
}),
|
||||||
defines = [
|
defines = [
|
||||||
"BENCHMARK_STATIC_DEFINE",
|
"BENCHMARK_STATIC_DEFINE",
|
||||||
|
"BENCHMARK_VERSION=\\\"" + (module_version() if module_version() != None else "") + "\\\"",
|
||||||
] + select({
|
] + select({
|
||||||
":perfcounters": ["HAVE_LIBPFM"],
|
":perfcounters": ["HAVE_LIBPFM"],
|
||||||
"//conditions:default": [],
|
"//conditions:default": [],
|
||||||
|
@ -748,13 +748,7 @@ int InitializeStreams() {
|
|||||||
|
|
||||||
} // end namespace internal
|
} // end namespace internal
|
||||||
|
|
||||||
std::string GetBenchmarkVersiom() {
|
std::string GetBenchmarkVersiom() { return {BENCHMARK_VERSION}; }
|
||||||
#if defined(BENCHMARK_VERSION)
|
|
||||||
return {BENCHMARK_VERSION};
|
|
||||||
#else
|
|
||||||
return "hello, bazel!";
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void PrintDefaultHelp() {
|
void PrintDefaultHelp() {
|
||||||
fprintf(stdout,
|
fprintf(stdout,
|
||||||
|
Loading…
Reference in New Issue
Block a user