diff --git a/bazel/envoy_library.bzl b/bazel/envoy_library.bzl index 12487aee0bd2..4830807a28cc 100644 --- a/bazel/envoy_library.bzl +++ b/bazel/envoy_library.bzl @@ -101,7 +101,8 @@ def envoy_cc_library( strip_include_prefix = None, include_prefix = None, textual_hdrs = None, - defines = []): + defines = [], + target_compatible_with = None): if tcmalloc_dep: deps += tcmalloc_external_deps(repository) @@ -127,6 +128,7 @@ def envoy_cc_library( strip_include_prefix = strip_include_prefix, include_prefix = include_prefix, defines = defines, + target_compatible_with = target_compatible_with, ) # Intended for usage by external consumers. This allows them to disambiguate @@ -140,6 +142,7 @@ def envoy_cc_library( deps = [":" + name], strip_include_prefix = strip_include_prefix, include_prefix = include_prefix, + target_compatible_with = target_compatible_with, ) # Used to specify a library that only builds on POSIX diff --git a/bazel/foreign_cc/BUILD b/bazel/foreign_cc/BUILD index 6d7fd1b2045e..0c5eff44ea2f 100644 --- a/bazel/foreign_cc/BUILD +++ b/bazel/foreign_cc/BUILD @@ -11,10 +11,8 @@ configure_make( name = "liburing", configure_in_place = True, lib_source = "@com_github_axboe_liburing//:all", - tags = [ - "nocompdb", - "skip_on_windows", - ], + tags = ["skip_on_windows"], + target_compatible_with = ["@platforms//os:linux"], ) # autotools packages are unusable on Windows as-is diff --git a/source/common/io/BUILD b/source/common/io/BUILD index b8684f33999e..bd1f07c2f380 100644 --- a/source/common/io/BUILD +++ b/source/common/io/BUILD @@ -27,7 +27,7 @@ envoy_cc_library( "io_uring_impl.h", ], external_deps = ["uring"], - tags = ["nocompdb"], + target_compatible_with = ["@platforms//os:linux"], deps = [ ":io_uring_interface", ],