Revert "Add bazel target for benchmark_release (#1078)" (#1081)

This reverts commit d8254bb9eb.
This commit is contained in:
Yannic 2021-01-05 10:54:04 +01:00 committed by GitHub
parent a6d08aea4b
commit 8df87f6c87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,8 +10,8 @@ config_setting(
visibility = [":__subpackages__"], visibility = [":__subpackages__"],
) )
filegroup( cc_library(
name = "benchmark_srcs", name = "benchmark",
srcs = glob( srcs = glob(
[ [
"src/*.cc", "src/*.cc",
@ -19,11 +19,6 @@ filegroup(
], ],
exclude = ["src/benchmark_main.cc"], exclude = ["src/benchmark_main.cc"],
), ),
)
cc_library(
name = "benchmark",
srcs = [":benchmark_srcs"],
hdrs = ["include/benchmark/benchmark.h"], hdrs = ["include/benchmark/benchmark.h"],
linkopts = select({ linkopts = select({
":windows": ["-DEFAULTLIB:shlwapi.lib"], ":windows": ["-DEFAULTLIB:shlwapi.lib"],
@ -33,19 +28,6 @@ cc_library(
visibility = ["//visibility:public"], 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( cc_library(
name = "benchmark_main", name = "benchmark_main",
srcs = ["src/benchmark_main.cc"], srcs = ["src/benchmark_main.cc"],