From 581de0a18f606d1c58dc643ae06f5f7476e46791 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Mon, 2 Mar 2026 15:32:05 -0800 Subject: [PATCH] Move remote config_setting to rules_cc This was removed from bazel in https://github.com/bazelbuild/bazel/commit/e81949554f3ecab5e2c4afd79031f498f36427fe I think ideally we would drop this but in the meantime this retains compatibility assuming anything was using this. --- cc/system_library.bzl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cc/system_library.bzl b/cc/system_library.bzl index 61b849b72..32a03eb5e 100644 --- a/cc/system_library.bzl +++ b/cc/system_library.bzl @@ -298,10 +298,16 @@ cc_import( {includes} ) +config_setting( + name = "remote", + values = {{"define": "EXECUTOR=remote"}}, + visibility = ["//visibility:private"], +) + alias( name = "{name}", actual = select({{ - "@bazel_tools//src/conditions:remote": "remote_includes", + ":remote": "remote_includes", "//conditions:default": "local_includes", }}), visibility = ["//visibility:public"],