diff --git a/BUILD.bazel b/BUILD.bazel index 2d87177c..eb35b627 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -10,8 +10,8 @@ config_setting( visibility = [":__subpackages__"], ) -filegroup( - name = "benchmark_srcs", +cc_library( + name = "benchmark", srcs = glob( [ "src/*.cc", @@ -19,11 +19,6 @@ filegroup( ], exclude = ["src/benchmark_main.cc"], ), -) - -cc_library( - name = "benchmark", - srcs = [":benchmark_srcs"], hdrs = ["include/benchmark/benchmark.h"], linkopts = select({ ":windows": ["-DEFAULTLIB:shlwapi.lib"], @@ -33,19 +28,6 @@ cc_library( visibility = ["//visibility:public"], ) -cc_library( - name = "benchmark_release", - srcs = [":benchmark_srcs"], - hdrs = ["include/benchmark/benchmark.h"], - defines = ["NDEBUG"], - linkopts = select({ - ":windows": ["-DEFAULTLIB:shlwapi.lib"], - "//conditions:default": ["-pthread"], - }), - strip_include_prefix = "include", - visibility = ["//visibility:public"], -) - cc_library( name = "benchmark_main", srcs = ["src/benchmark_main.cc"],