From 5af40e824defae36fb70521c793af0594599ac7e Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Wed, 8 Jan 2025 03:26:44 -0800 Subject: [PATCH] [bazel] Remove selects on CPU (#1892) 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. ``` --- BUILD.bazel | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 3451b4e75..95557a35b 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -17,30 +17,12 @@ COPTS = [ "-Werror=old-style-cast", ] -config_setting( - name = "qnx", - constraint_values = ["@platforms//os:qnx"], - values = { - "cpu": "x64_qnx", - }, - visibility = [":__subpackages__"], -) - config_setting( name = "windows", constraint_values = ["@platforms//os:windows"], - values = { - "cpu": "x64_windows", - }, visibility = [":__subpackages__"], ) -config_setting( - name = "macos", - constraint_values = ["@platforms//os:macos"], - visibility = ["//visibility:public"], -) - config_setting( name = "perfcounters", define_values = {