From 7ec56d7217b3bfa4455f4b9a90242a4c58582be2 Mon Sep 17 00:00:00 2001 From: Vihang Mehta Date: Wed, 21 Dec 2022 22:03:48 -0800 Subject: [PATCH] Update platform constraints to be compatible with bazel 6 Signed-off-by: Vihang Mehta --- bazel/civetweb.BUILD | 4 ++-- bazel/curl.BUILD | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bazel/civetweb.BUILD b/bazel/civetweb.BUILD index 4fe53eb9..eb1baef7 100644 --- a/bazel/civetweb.BUILD +++ b/bazel/civetweb.BUILD @@ -3,14 +3,14 @@ licenses(["notice"]) # MIT license config_setting( name = "osx", constraint_values = [ - "@bazel_tools//platforms:osx", + "@platforms//os:osx", ], ) config_setting( name = "windows", constraint_values = [ - "@bazel_tools//platforms:windows", + "@platforms//os:windows", ], ) diff --git a/bazel/curl.BUILD b/bazel/curl.BUILD index eb045de2..59b30d4d 100644 --- a/bazel/curl.BUILD +++ b/bazel/curl.BUILD @@ -23,7 +23,7 @@ package(features = ["no_copts_tokenization"]) config_setting( name = "windows", constraint_values = [ - "@bazel_tools//platforms:windows", + "@platforms//os:windows", ], visibility = ["//visibility:private"], ) @@ -31,7 +31,7 @@ config_setting( config_setting( name = "osx", constraint_values = [ - "@bazel_tools//platforms:osx", + "@platforms//os:osx", ], visibility = ["//visibility:private"], )