Skip to content

Commit

Permalink
Support bazel?
Browse files Browse the repository at this point in the history
  • Loading branch information
LebedevRI committed Jan 24, 2024
1 parent a7a5822 commit 2737d16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ cc_library(
"_FILE_OFFSET_BITS=64",
"_LARGEFILE64_SOURCE",
"_LARGEFILE_SOURCE",
"BENCHMARK_VERSION=\""+module_version()+"\""
],
strip_include_prefix = "include",
visibility = ["//visibility:public"],
Expand Down
8 changes: 1 addition & 7 deletions src/benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -748,13 +748,7 @@ int InitializeStreams() {

} // end namespace internal

std::string GetBenchmarkVersiom() {
#if defined(BENCHMARK_VERSION)
return {BENCHMARK_VERSION};
#else
return "hello, bazel!";
#endif
}
std::string GetBenchmarkVersiom() { return {BENCHMARK_VERSION}; }

void PrintDefaultHelp() {
fprintf(stdout,
Expand Down

0 comments on commit 2737d16

Please sign in to comment.