mirror of
https://github.com/google/benchmark.git
synced 2025-04-03 16:10:58 +08:00
[bazel] Remove selects on CPU
In a future version of bazel this produces a warning. In this case using only the platform being windows is enough. Fixes: ``` WARNING: /.../benchmark/BUILD.bazel:29:15: in config_setting rule //:windows: select() on cpu is deprecated. Use platform constraints instead: https://bazel.build/docs/configurable-attributes#platforms. ```
This commit is contained in:
parent
f4f93b5553
commit
4ec420baa5
18
BUILD.bazel
18
BUILD.bazel
@ -17,30 +17,12 @@ COPTS = [
|
|||||||
"-Werror=old-style-cast",
|
"-Werror=old-style-cast",
|
||||||
]
|
]
|
||||||
|
|
||||||
config_setting(
|
|
||||||
name = "qnx",
|
|
||||||
constraint_values = ["@platforms//os:qnx"],
|
|
||||||
values = {
|
|
||||||
"cpu": "x64_qnx",
|
|
||||||
},
|
|
||||||
visibility = [":__subpackages__"],
|
|
||||||
)
|
|
||||||
|
|
||||||
config_setting(
|
config_setting(
|
||||||
name = "windows",
|
name = "windows",
|
||||||
constraint_values = ["@platforms//os:windows"],
|
constraint_values = ["@platforms//os:windows"],
|
||||||
values = {
|
|
||||||
"cpu": "x64_windows",
|
|
||||||
},
|
|
||||||
visibility = [":__subpackages__"],
|
visibility = [":__subpackages__"],
|
||||||
)
|
)
|
||||||
|
|
||||||
config_setting(
|
|
||||||
name = "macos",
|
|
||||||
constraint_values = ["@platforms//os:macos"],
|
|
||||||
visibility = ["//visibility:public"],
|
|
||||||
)
|
|
||||||
|
|
||||||
config_setting(
|
config_setting(
|
||||||
name = "perfcounters",
|
name = "perfcounters",
|
||||||
define_values = {
|
define_values = {
|
||||||
|
Loading…
Reference in New Issue
Block a user